Created
May 25, 2012 21:31
-
-
Save dangerp/2790727 to your computer and use it in GitHub Desktop.
UJS with server side logic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getScript('/users/show') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% 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