Authored by lore-w

code review by yue.liu

@@ -859,7 +859,7 @@ var jQuery = require('jquery'); @@ -859,7 +859,7 @@ var jQuery = require('jquery');
859 859
860 } 860 }
861 861
862 - $.fn.uploadifive = function(method) { 862 + $.fn.upload = function(method) {
863 863
864 if (methods[method]) { 864 if (methods[method]) {
865 return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); 865 return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
@@ -23,7 +23,7 @@ var $uploadImgList = $('.upload-img-list'), @@ -23,7 +23,7 @@ var $uploadImgList = $('.upload-img-list'),
23 imgStr = '', 23 imgStr = '',
24 uploadImgNum = 0; 24 uploadImgNum = 0;
25 25
26 -require('./jquery.uploadifive'); 26 +require('./jquery.upload');
27 27
28 imgTpl = '{{# imgList}}' + 28 imgTpl = '{{# imgList}}' +
29 '<li>' + 29 '<li>' +
@@ -34,7 +34,7 @@ imgTpl = '{{# imgList}}' + @@ -34,7 +34,7 @@ imgTpl = '{{# imgList}}' +
34 34
35 imgTemplate = Handlebars.compile(imgTpl); 35 imgTemplate = Handlebars.compile(imgTpl);
36 36
37 -$('#upload-img').uploadifive({ 37 +$('#upload-img').upload({
38 auto: true, 38 auto: true,
39 fileType: 'image/*', 39 fileType: 'image/*',
40 uploadScript: '/home/suggestimgUpload', 40 uploadScript: '/home/suggestimgUpload',