Skip to content

Instantly share code, notes, and snippets.

@dangerp
Created May 25, 2012 21:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dangerp/2790727 to your computer and use it in GitHub Desktop.
Save dangerp/2790727 to your computer and use it in GitHub Desktop.
UJS with server side logic
$.getScript('/users/show')
<% unless logged_in? %>
$('#post-button > button, .input-prepend input').addClass('disabled');
$('.input-prepend input').addClass('disabled');
$('.input-prepend input').attr('disabled', 'disabled');
new PopOver().setPopOver($('#post-button > button'), "You must be logged in to register your Business");
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment