Sha256: 5d72c2f855e2c41571fa6dd1ae8b26d4d59def18854ce76b0aabd56faf76423c
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
$(function() { // all .toggle links must have a rel attribute to identify what element will toggle $('a.toggle').live('click', function() { $($(this).attr('rel')).toggle(); }); // open modalbox $('.lightbox').fancybox({ closeClick: false, autoSize: true }); // notices fadeout $('a#system_notice_close, #system_notice').live('click', function() { $('#system_notice').fadeOut(); }); // ajax forms cancel button closes modal window $('.mdwa_ajax a.cancel').live('click', function() { $.fancybox.close(true); }); }); function checkOrUncheckAll( to_be_checked ){ var to_be_checked = to_be_checked || false; $( ".cid" ).attr( "checked", to_be_checked ); } function defineAction( form, action, confirmation ) { var response = true; if( confirmation ) { response = confirm("Are you sure?"); } if( response ) { $( "#" + form ).attr( "action", action); $( "#" + form ).submit(); } } function defineOrder( form, action, id ) { $( "#" + form ).attr( "action", action); $( "#cb" + id ).attr( "checked", true); $( "#" + form ).submit(); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mdd-1.1.0 | lib/generators/mdd/sandbox/templates/app/assets/javascripts/mdwa/template/all_pages.js |