diff --git a/static/js/me/jquery.uploadifive.js b/static/js/me/jquery.upload.js index 9d8562c..89865f7 100644 --- a/static/js/me/jquery.uploadifive.js +++ b/static/js/me/jquery.upload.js @@ -859,7 +859,7 @@ var jQuery = require('jquery'); } - $.fn.uploadifive = function(method) { + $.fn.upload = function(method) { if (methods[method]) { return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); diff --git a/static/js/me/suggest.js b/static/js/me/suggest.js index d28f4ca..f3505e6 100644 --- a/static/js/me/suggest.js +++ b/static/js/me/suggest.js @@ -23,7 +23,7 @@ var $uploadImgList = $('.upload-img-list'), imgStr = '', uploadImgNum = 0; -require('./jquery.uploadifive'); +require('./jquery.upload'); imgTpl = '{{# imgList}}' + '<li>' + @@ -34,7 +34,7 @@ imgTpl = '{{# imgList}}' + imgTemplate = Handlebars.compile(imgTpl); -$('#upload-img').uploadifive({ +$('#upload-img').upload({ auto: true, fileType: 'image/*', uploadScript: '/home/suggestimgUpload',