rem:  res. find(">div[@class]") .addClass("documents_added") .css("display","none") .end(); if (jForm.find("input[@name='arg']").val().search("vignette")!=-1) cont = $("#liste_images"); else cont = $("#liste_documents"); cont .prepend(res.html());  cont. find("div.documents_added") .removeClass("documents_added") .show("slow",function(){ var anim = $(this).css("height","");  if(!jQuery.browser.mozilla) anim.width(this.orig.width-2); $(anim).find("img[@onclick]").get(0).onclick(); }) .overflow(""); 
add:  var anchor = $(res.find(">a:first")); res.end(); if($("#"+anchor.id()).size()) { cont = $("#"+anchor.id()).next().next().html(anchor.next().next().html()); } else {  res. find(">div[@class]") .addClass("documents_added") .css("display","none") .end(); if (jForm.find("input[@name='arg']").val().search("/0/vignette")!=-1) cont = $("#liste_images"); else cont = $("#liste_documents"); cont .prepend(res.html());  cont. find("div.documents_added") .removeClass("documents_added") .show("slow",function(){ var anim = $(this).css("height","");  if(!jQuery.browser.mozilla) anim.width(this.orig.width-2); $(anim).find("img[@onclick]").get(0).onclick(); }) .overflow(""); } $("form.form_upload",cont).async_upload(async_upload_article_edit); 
context: function async_upload_article_edit(res,jForm){      var cont;      //add a class to new documents      res.      find(">div[@class]")        .addClass("documents_added")        .css("display","none")      .end();      if (jForm.find("input[@name='arg']").val().search("vignette")!=-1)        cont = $("#liste_images");      else        cont = $("#liste_documents");      cont      .prepend(res.html());      //find added documents, remove label and show them nicely      cont.      find("div.documents_added")        .removeClass("documents_added")        .show("slow",function(){            var anim = $(this).css("height","");            //bug explorer-opera-safari            if(!jQuery.browser.mozilla) anim.width(this.orig.width-2);            $(anim).find("img[@onclick]").get(0).onclick();        })        .overflow("");      verifForm(cont);      return true;}
meta: 207	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/207/81047877cdb45b16a567f003da24c42b3559c608/async_upload.js/clean/dist/javascript/async_upload.js