Created
November 28, 2010 02:26
-
-
Save eduardordm/718512 to your computer and use it in GitHub Desktop.
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
module ApplicationHelper | |
def jsubmit_button(value = "Confirm", options = {}) | |
content_for :head do | |
javascript_tag "$(function() { | |
$( '#jsubmit_button').button({ | |
icons: { | |
primary: \"ui-icon-check\" | |
}, | |
text: true | |
}); | |
});" | |
end | |
content_tag(:button, value, :type => "submit", :id => 'jsubmit_button') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment