Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
lore-w
9 years ago
Commit
c7d2d8cbffc0c014a7bb2ed9ee0d463c00dbe832
1 parent
0ffef127
uploadfive修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
static/js/me/jquery.uploadifive.js → static/js/me/jquery.upload.js
static/js/me/suggest.js
static/js/me/jquery.upload
ifive
.js → static/js/me/jquery.upload.js
View file @
c7d2d8c
...
...
@@ -859,7 +859,7 @@ var jQuery = require('jquery');
}
$
.
fn
.
upload
ifive
=
function
(
method
)
{
$
.
fn
.
upload
=
function
(
method
)
{
if
(
methods
[
method
])
{
return
methods
[
method
].
apply
(
this
,
Array
.
prototype
.
slice
.
call
(
arguments
,
1
));
...
...
static/js/me/suggest.js
View file @
c7d2d8c
...
...
@@ -23,7 +23,7 @@ var $uploadImgList = $('.upload-img-list'),
imgStr
=
''
,
uploadImgNum
=
0
;
require
(
'./jquery.upload
ifive
'
);
require
(
'./jquery.upload'
);
imgTpl
=
'{{# imgList}}'
+
'<li>'
+
...
...
@@ -34,7 +34,7 @@ imgTpl = '{{# imgList}}' +
imgTemplate
=
Handlebars
.
compile
(
imgTpl
);
$
(
'#upload-img'
).
upload
ifive
({
$
(
'#upload-img'
).
upload
({
auto
:
true
,
fileType
:
'image/*'
,
uploadScript
:
'/home/suggestimgUpload'
,
...
...
Please
register
or
login
to post a comment