Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
9 years ago
Commit
09cbe60d68a187b57efc706cfbcccc29ccb99a33
1 parent
04f92e83
弹窗优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
public/js/common/dialog.js
public/js/common/dialog.js
View file @
09cbe60
...
...
@@ -88,6 +88,8 @@ function Dialog(options) {
Dialog
.
prototype
.
close
=
function
()
{
this
.
$mask
&&
this
.
$mask
.
addClass
(
'hide'
);
this
.
$el
.
remove
();
return
this
;
};
Dialog
.
prototype
.
show
=
function
()
{
...
...
@@ -96,6 +98,8 @@ Dialog.prototype.show = function() {
'margin-top'
:
-
this
.
$el
.
outerHeight
()
/
2
,
'margin-left'
:
-
this
.
$el
.
outerWidth
()
/
2
});
return
this
;
};
exports
.
Dialog
=
Dialog
;
...
...
Please
register
or
login
to post a comment