Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
zhangxiaoru
8 years ago
Commit
95df8c82b88ee64c83c33043d5e6726d6a7c3c01
1 parent
26325963
颜色去除两端空格
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
public/js/cart/chose-panel.js
public/scss/cart/_chose-panel.css
public/js/cart/chose-panel.js
View file @
95df8c8
...
...
@@ -374,7 +374,7 @@ function chosedLength() {
infoHtml
,
choosedInfo
=
$
(
'.choosed-info'
),
notChoose
=
$
(
'.not-choose'
),
chosedStr
=
$chosedL
.
eq
(
0
).
html
(),
chosedStr
=
$chosedL
.
eq
(
0
).
html
()
.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
)
,
strlen
=
0
;
choosedInfo
.
removeClass
(
'hide'
);
...
...
@@ -389,8 +389,7 @@ function chosedLength() {
}
else
{
strlen
++
;
}
if
(
strlen
>=
18
)
{
if
(
strlen
>=
16
)
{
chosedStr
=
chosedStr
.
substring
(
0
,
i
)
+
'...'
;
break
;
}
...
...
public/scss/cart/_chose-panel.css
View file @
95df8c8
...
...
@@ -20,7 +20,6 @@
.close
{
float
:
right
;
font-size
:
80%
;
width
:
30px
;
height
:
30px
;
margin
:
16px
16px
0
0
;
...
...
Please
register
or
login
to post a comment