Created
December 3, 2009 01:00
-
-
Save bradgessler/247798 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
def button_tag_menu(value, options={}, &block) | |
options[:onclick] = "$(this).up('.menuButton').down('.menu').show();" | |
%{ | |
<div class="menuButton"> | |
#{button_tag(value, options)} | |
<div class="menu" style="display: none;"> | |
#{capture(&block)} | |
</div> | |
</div> | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment