Changeset 4782 in spip-zone


Ignore:
Timestamp:
Aug 20, 2006, 10:40:31 PM (13 years ago)
Author:
renatoformato@…
Message:

correct a stupid bug. A of ajax is for asynchronous. However it seems that jquery does not verify if the browser support XMLHttpRequest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_ze_laboratoire_/spiip/img_pack/layer.js

    r4781 r4782  
    167167        } else {
    168168                //must check if it works with checkboxes
    169                 var success = false;
    170169                $('#'+id).prepend(ajax_image_searching).
    171170                load(trig.getAttribute('action'),$('input',trig).get(),
    172171                function(res,status){
    173                         if(status=="success") success=true;
     172                        if(status=="error") success=true;
    174173                });
    175                 return !success;
     174                return false;
    176175        }
    177176}
Note: See TracChangeset for help on using the changeset viewer.