Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe2
·
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
zhaoqing
6 years ago
Commit
99adffed66fc9943dea6a9c8a2f0a36d88ff7f9c
1 parent
baa54182
商品详情页图片添加跳转链接
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
code/static/js.jquery/common/dialogs/image.js
code/static/js.jquery/common/dialogs/link.js
dist/yohobuy-portal-fe/5.0.2/jquery/guang.info.Edit.js
code/static/js.jquery/common/dialogs/image.js
View file @
99adffe
...
...
@@ -38,8 +38,7 @@ require("../util/jquery-ui.min");
return
arr
.
push
({
_src
:
orignal_src
,
src
:
orignal_src
,
onclick
:
"window.bigImageListener.showBigImage("
+
orignal_src
+
")"
src
:
orignal_src
});
});
...
...
code/static/js.jquery/common/dialogs/link.js
View file @
99adffe
...
...
@@ -55,7 +55,15 @@ var $=require('jquery');
'ok'
:
{
exec
:
function
(
editor
,
$w
)
{
var
href
=
$
(
'#edui-link-Jhref'
).
val
().
replace
(
/^
\s
+|
\s
+$/g
,
''
);
if
(
href
==
""
){
common
.
util
.
__tip
(
"Url不能为空!"
);
return
false
;
}
var
reg
=
new
RegExp
(
".+\.yoho[^.]*\.(com|cn).*"
,
"g"
);
if
(
!
reg
.
test
(
href
)){
common
.
util
.
__tip
(
"Url必须包含yohobuy或者yoho,域名格式为com或者cn!"
);
return
false
;
}
if
(
href
)
{
editor
.
execCommand
(
'link'
,
{
'href'
:
href
,
...
...
dist/yohobuy-portal-fe/5.0.2/jquery/guang.info.Edit.js
View file @
99adffe
...
...
@@ -8180,7 +8180,7 @@ webpackJsonp([63],{
ci
;
ci
=
opt
[
0
];
if
(
opt
.
length
==
1
)
{
str
=
'<img src="'
+
ci
.
src
+
'" '
+
(
ci
.
_src
?
' _src="'
+
ci
.
_src
+
'" '
:
''
)
+
str
=
'<img
src="'
+
ci
.
src
+
'" '
+
(
ci
.
_src
?
' _src="'
+
ci
.
_src
+
'" '
:
''
)
+
(
ci
.
width
?
'width="'
+
ci
.
width
+
'" '
:
''
)
+
(
ci
.
height
?
' height="'
+
ci
.
height
+
'" '
:
''
)
+
(
ci
[
'floatStyle'
]
==
'left'
||
ci
[
'floatStyle'
]
==
'right'
?
' style="float:'
+
ci
[
'floatStyle'
]
+
';"'
:
''
)
+
...
...
Please
register
or
login
to post a comment