Works on jQuery file upload
This commit is contained in:
parent
518a6f64a4
commit
f910055358
@ -102,7 +102,7 @@ class UploadHandler
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$file->delete_url = $this->options['script_url']
|
$file->delete_url = $this->options['script_url']
|
||||||
.'?file='.rawurlencode($file->name).'fk_element='.$this->fk_elment.'&element='.$this->element;
|
.'?file='.rawurlencode($file->name).'&fk_element='.$this->fk_element.'&element='.$this->element;
|
||||||
$file->delete_type = 'DELETE';
|
$file->delete_type = 'DELETE';
|
||||||
return $file;
|
return $file;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,15 +15,15 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id: ajaxfileupload.tpl.php,v 1.1 2011/07/03 13:16:46 hregis Exp $
|
* $Id: ajaxfileupload.tpl.php,v 1.2 2011/07/03 13:26:45 hregis Exp $
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- START TEMPLATE FILE UPLOAD -->
|
<!-- START TEMPLATE FILE UPLOAD -->
|
||||||
<script id="template-upload" type="text/x-jquery-tmpl">
|
<script id="template-upload" type="text/x-jquery-tmpl">
|
||||||
<tr class="template-upload{{if error}} ui-state-error{{/if}}">
|
<tr class="template-upload{{if error}} ui-state-error{{/if}}">
|
||||||
<td class="preview"></td>
|
|
||||||
<td class="name">${name}</td>
|
<td class="name">${name}</td>
|
||||||
|
<td class="preview"></td>
|
||||||
<td class="size">${sizef}</td>
|
<td class="size">${sizef}</td>
|
||||||
{{if error}}
|
{{if error}}
|
||||||
<td class="error" colspan="2">Error:
|
<td class="error" colspan="2">Error:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user