Changeset 27398 for extensions/Fotorama/template
- Timestamp:
- Feb 17, 2014, 4:22:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/template/admin.tpl
r27343 r27398 97 97 </p> 98 98 </form> 99 100 {footer_script require='jquery'}{literal} 101 function update_Fotorama_state() { 102 if (jQuery('#allowfullscreen').val() == "false") { 103 jQuery('#only_fullscreen').prop('disabled', true); 104 jQuery('#only_fullscreen').removeAttr('checked'); 105 jQuery('#nav').prop('disabled', false); 106 jQuery('#fullscreen_nav').prop('disabled', true); 107 } 108 else { 109 jQuery('#only_fullscreen').prop('disabled', false); 110 jQuery('#fullscreen_nav').prop('disabled', false); 111 } 112 113 if(jQuery('#only_fullscreen').is(":checked")) { 114 jQuery('#nav').prop('disabled', true); 115 } 116 else { 117 jQuery('#nav').prop('disabled', false); 118 } 119 } 120 jQuery().ready(function() { 121 update_Fotorama_state(); 122 }); 123 jQuery('#allowfullscreen').change(function() { 124 update_Fotorama_state(); 125 }); 126 jQuery('#only_fullscreen').change(function() { 127 update_Fotorama_state(); 128 }); 129 130 {/literal}{/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.