Changeset 7885


Ignore:
Timestamp:
11/26/10 10:53:56 (9 years ago)
Author:
LucMorizur
Message:

Improvements, and replace '$' with 'jQuery'

Location:
extensions/event_cats/admin/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/template/autolog_new.js

    r7879 r7885  
    806806 
    807807function ec_check_validity_on() { 
    808   $('.ec_valid_ctl').attr('disabled', !ec_validity_on); 
    809   $('img.ui-datepicker-trigger').css( 
     808  jQuery('.ec_valid_ctl').attr('disabled', !ec_validity_on); 
     809  jQuery('img.ui-datepicker-trigger').css( 
    810810    'display', (ec_validity_on) ? 'inline' : 'none' 
    811811  ); 
    812   $('#ec_tmp_img').css( 
     812  jQuery('#ec_tmp_img').css( 
    813813    'display', (ec_validity_on) ? 'none' : 'inline' 
    814814  ); 
     
    863863   "#ec_validity_month_id", "#ec_validity_year_id", "#ec_linked_date_id", 
    864864   null, "#ec_min_date_id", null); 
    865   $(document).ready(function(){ 
    866     maintenant = new Date(); 
    867     maintenant.setMilliseconds(0); 
    868     maintenant.setSeconds(0); 
    869     validity_date.setTime(maintenant.getTime()); 
     865  maintenant = new Date(); 
     866  maintenant.setMilliseconds(0); 
     867  maintenant.setSeconds(0); 
     868  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    ); 
    870873    ec_check_validity_on(); 
    871     $('#ec_tmp_img').attr( 
    872       'src', $('img.ui-datepicker-trigger:first').attr('src') 
    873     ); 
    874     $('.ui-datepicker').click(function(){ 
     874    jQuery('.ui-datepicker').click(function(){ 
    875875      ec_validity_check_min(); 
    876876    }); 
    877     $('.ec_datepicker').change(function(){ 
     877    jQuery('.ec_datepicker').change(function(){ 
    878878      ec_validity_check_min(); 
    879879    }); 
    880     $('#ec_validity_sel_day').css( 
    881       'backgroundColor', $('#content').css('backgroundColor') 
     880    jQuery('#ec_validity_sel_day').css( 
     881      'backgroundColor', jQuery('#content').css('backgroundColor') 
    882882    ); 
    883     $('#ec_validity_sel_day').css( 
    884       'color', $('#content').css('color') 
     883    jQuery('#ec_validity_sel_day').css( 
     884      'color', jQuery('#content').css('color') 
    885885    ); 
    886     $('.ec_valid_ctl').attr('disabled', 'disabled'); 
    887     $('#ec_valid_date_on_id').change(function(){ 
    888       ec_validity_on = $(this).attr('checked'); 
     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'); 
    889889      ec_check_validity_on(); 
    890890    }); 
  • extensions/event_cats/admin/template/autolog_new.tpl

    r7879 r7885  
    356356             size = "5" maxlength = "5" title = "{'Hours field tooltip'|@translate}" style = "text-align:right; "> 
    357357            <input id = "ec_linked_date_id" name = "ec_linked_date_id" type = "hidden" size = "10" disabled = "disabled"> 
    358             <img id = "ec_tmp_img" class = "ui-datepicker-trigger" src = "{$EVNTCATS_URLS.ROOT}icon/tmp.png" alt = "" title = "" style = "display:none;"> 
     358            <img id = "ec_tmp_img" class = "ui-datepicker-trigger" alt = "" title = "" 
     359             src = "{$EVNTCATS_URLS.ROOT}icon/tmp.png" style = "display:none; cursor:default;"> 
    359360          </p> 
    360361          <p style = "text-align:left;"> 
Note: See TracChangeset for help on using the changeset viewer.