[svn r10700] fix a bug in add_real_progress_bar

skala
Eric Marguin 19 years ago
parent 76172833b0
commit ac944c6dd9
  1. 5
      main/inc/lib/formvalidator/FormValidator.class.php

@ -276,7 +276,10 @@ EOT;
$this->addElement('html','<script language="javascript" src="'.api_get_path(WEB_CODE_PATH).'inc/lib/javascript/upload.js" type="text/javascript"></script>');
$this->addElement('html','<script type="text/javascript">var myUpload = new upload('.(abs(intval($delay))*1000).');</script>');
if(!$waitAfterUpload)
{
$waitAfterUpload = 0;
}
// add the upload event
$this->updateAttributes("onsubmit=\"myUpload.startRealUpload('dynamic_div','".$upload_id."','".$this->getAttribute('id')."',".$waitAfterUpload.")\"");

Loading…
Cancel
Save