Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-frontend
·
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
xuqi
10 years ago
Commit
9380d8ebecaeca9dc1f40149e19eebb8d254e39e
1 parent
b114f755
添加文字截取
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
mobile/public/js/template.js
mobile/public/js/template.js
View file @
9380d8e
...
...
@@ -6,6 +6,7 @@
var
$
=
require
(
'jquery'
),
_
=
require
(
'underscore'
),
ellipsis
=
require
(
'mlellipsis'
),
Mustache
=
require
(
'mustache'
),
Fastclick
=
require
(
'fastclick'
),
timer
=
null
;
...
...
@@ -87,6 +88,13 @@ exports.init = function() {
top
:
(
winH
-
tipH
)
/
2
,
left
:
(
winW
-
tipW
)
/
2
});
//ellipsis
ellipsis
.
init
();
$
(
'.reco .name'
).
each
(
function
()
{
$
(
this
).
mlellipsis
(
2
);
});
//fastclick
Fastclick
(
document
.
body
);
...
...
Please
register
or
login
to post a comment