Changeset 7942 for extensions/event_cats/admin/template/autolog_new.js
- Timestamp:
- Nov 29, 2010, 11:04:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/template/autolog_new.js
r7885 r7942 194 194 } 195 195 } 196 de('first_fieldset_value_id').innerHTML = de('ec_in_up_code_id').value; 197 if (de('ec_in_up_comment_id').value == '') 198 de('first_fieldset_comment_id').innerHTML = ''; 199 else 200 de('first_fieldset_comment_id').innerHTML = 201 ' (' + de('ec_in_up_comment_id').value + ')'; 196 202 } 197 203 … … 813 819 'display', (ec_validity_on) ? 'none' : 'inline' 814 820 ); 821 } 822 823 function ec_toggle_fieldset(f1, f2) { 824 var t = jQuery(f1).css('display'); 825 jQuery(f1).css('display', jQuery(f2).css('display')); 826 jQuery(f2).css('display', t); 815 827 } 816 828 … … 867 879 maintenant.setSeconds(0); 868 880 validity_date.setTime(maintenant.getTime()); 869 jQuery(document).ready(function(){870 jQuery('#ec_tmp_img').attr(871 'src', jQuery('img.ui-datepicker-trigger:first').attr('src')872 );873 ec_check_validity_on();874 jQuery('.ui-datepicker').click(function(){875 ec_validity_check_min();876 });877 jQuery('.ec_datepicker').change(function(){878 ec_validity_check_min();879 });880 jQuery('#ec_validity_sel_day').css(881 'backgroundColor', jQuery('#content').css('backgroundColor')882 );883 jQuery('#ec_validity_sel_day').css(884 'color', jQuery('#content').css('color')885 );886 jQuery('.ec_valid_ctl').attr('disabled', 'disabled');887 jQuery('#ec_valid_date_on_id').change(function(){888 ec_validity_on = jQuery(this).attr('checked');889 ec_check_validity_on();890 });891 });892 881 893 882 if (ec_is_creation) { // Entry creation … … 1010 999 } 1011 1000 ec_mark_help(''); 1001 jQuery(document).ready(function(){ 1002 jQuery('#ec_tmp_img').attr( 1003 'src', jQuery('img.ui-datepicker-trigger:first').attr('src') 1004 ); 1005 ec_check_validity_on(); 1006 jQuery('#reduced_first_fieldset_bullet_id').click(function(){ 1007 ec_toggle_fieldset( 1008 '#reduced_first_fieldset_id', '#maximized_first_fieldset_id' 1009 ); 1010 }); 1011 jQuery('#maximized_first_fieldset_bullet_id').click(function(){ 1012 ec_toggle_fieldset( 1013 '#reduced_first_fieldset_id', '#maximized_first_fieldset_id' 1014 ); 1015 }); 1016 jQuery('.ui-datepicker').click(function(){ 1017 ec_validity_check_min(); 1018 }); 1019 jQuery('.ec_datepicker').change(function(){ 1020 ec_validity_check_min(); 1021 }); 1022 jQuery('#ec_validity_sel_day').css( 1023 'backgroundColor', jQuery('#content').css('backgroundColor') 1024 ); 1025 jQuery('#ec_validity_sel_day').css( 1026 'color', jQuery('#content').css('color') 1027 ); 1028 jQuery('.ec_valid_ctl').attr('disabled', 'disabled'); 1029 jQuery('#ec_valid_date_on_id').change(function(){ 1030 ec_validity_on = jQuery(this).attr('checked'); 1031 ec_check_validity_on(); 1032 }); 1033 jQuery('.reduced_fieldsets').css({ 1034 'padding-left' : jQuery('fieldset').css('padding-left'), 1035 'padding-right' : jQuery('fieldset').css('padding-right'), 1036 'padding-top' : jQuery('fieldset').css('padding-top'), 1037 'padding-bottom' : jQuery('fieldset').css('padding-bottom'), 1038 'margin-left' : jQuery('fieldset').css('margin-left'), 1039 'margin-right' : jQuery('fieldset').css('margin-right'), 1040 'margin-top' : jQuery('fieldset').css('margin-top'), 1041 'margin-bottom' : jQuery('fieldset').css('margin-bottom'), 1042 }); 1043 jQuery('.plus_bullets').css( 1044 'padding-left', jQuery('legend').css('padding-left') 1045 ); 1046 jQuery('.reduced_fieldsets_legend').css( 1047 'padding-left', jQuery('fieldset').css('border-left-width') 1048 ); 1049 }); 1012 1050 return false; 1013 1051 }
Note: See TracChangeset
for help on using the changeset viewer.