Changeset 9806


Ignore:
Timestamp:
Mar 21, 2011, 1:58:39 PM (13 years ago)
Author:
plg
Message:

bug 2226 fixed: on a select, Chrome doesn't trigger anything on click(), use change() instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r9466 r9806  
    145145  $("[id^=action_]").hide();
    146146
    147   $("select[name=selectAction]").click(function () {
     147  $("select[name=selectAction]").change(function () {
    148148    $("[id^=action_]").hide();
    149149    $("#action_"+$(this).attr("value")).show();
     150
     151    if ($(this).val() != -1) {
     152      $("#applyActionBlock").show();
     153    }
     154    else {
     155      $("#applyActionBlock").hide();
     156    }
    150157  });
    151158
     
    248255    else {
    249256      $("#set_date_creation").show();
    250     }
    251   });
    252 
    253   $("select[name=selectAction]").change(function() {
    254     if ($(this).val() != -1) {
    255       $("#applyActionBlock").show();
    256     }
    257     else {
    258       $("#applyActionBlock").hide();
    259257    }
    260258  });
Note: See TracChangeset for help on using the changeset viewer.