diff --git a/webapp/WEB-INF/templates/skin/plugins/asynchronousupload/main.js b/webapp/WEB-INF/templates/skin/plugins/asynchronousupload/main.js index 68d1e40..92f7249 100644 --- a/webapp/WEB-INF/templates/skin/plugins/asynchronousupload/main.js +++ b/webapp/WEB-INF/templates/skin/plugins/asynchronousupload/main.js @@ -10,111 +10,118 @@ */ /* global $, window */ +Array.prototype.contains = function (object){ + + for(i in this){ + if(this[i] == object){ + return true; + } + } + return false; +} +if(typeof(handlerList)==='undefined'){ +handlerList=[] +} +if (!handlerList.contains('${handler_name}')){ + + handlerList.push('${handler_name}'); + $(function () { - 'use strict'; - - var uploadButton = $('