Use current app to get around missing etemplate run rights

This commit is contained in:
Nathan Gray 2013-11-13 23:28:26 +00:00
parent 31a42e3110
commit d1c5bf2243

View File

@ -138,7 +138,7 @@ var et2_file = et2_inputWidget.extend(
onError: function(event, name, error) { return self.onError(event,name,error);},
sendBoundary: window.FormData || jQuery.browser.mozilla,
beforeSend: function(form) { return self.beforeSend(form);},
url: egw.ajaxUrl("etemplate_widget_file::ajax_upload::etemplate"),
url: egw.ajaxUrl(self.egw().getAppName()+".etemplate_widget_file.ajax_upload.etemplate"),
autoclear: !(this.options.onchange)
},this.asyncOptions);
this.asyncOptions.fieldName = this.options.id;