mirror of https://github.com/layui/layer
Merge bd0e2c1c2f
into fe49de8ea8
commit
a74b742deb
|
@ -0,0 +1,72 @@
|
||||||
|
/ws/*
|
||||||
|
|
||||||
|
# should not ignored #
|
||||||
|
!*.java
|
||||||
|
!*.gitignore
|
||||||
|
!*.xml
|
||||||
|
!*.jsp
|
||||||
|
!*.html
|
||||||
|
!*.htm
|
||||||
|
!*.js
|
||||||
|
!*.css
|
||||||
|
!*.jpg
|
||||||
|
!*.gif
|
||||||
|
!*.properties
|
||||||
|
|
||||||
|
|
||||||
|
# Compiled source #
|
||||||
|
###################
|
||||||
|
*.com
|
||||||
|
*.class
|
||||||
|
*.dll
|
||||||
|
*.exe
|
||||||
|
*.o
|
||||||
|
*.so
|
||||||
|
|
||||||
|
# Packages #
|
||||||
|
############
|
||||||
|
# it's better to unpack these files and commit the raw source
|
||||||
|
# git has its own built in compression methods
|
||||||
|
*.7z
|
||||||
|
*.dmg
|
||||||
|
*.gz
|
||||||
|
*.iso
|
||||||
|
*.jar
|
||||||
|
*.rar
|
||||||
|
*.tar
|
||||||
|
*.zip
|
||||||
|
*.war
|
||||||
|
*.ear
|
||||||
|
|
||||||
|
# Logs and databases #
|
||||||
|
######################
|
||||||
|
*.log
|
||||||
|
*.sql
|
||||||
|
*.sqlite
|
||||||
|
|
||||||
|
# OS generated files #
|
||||||
|
######################
|
||||||
|
.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
Icon?
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# eclipse generated files #
|
||||||
|
######################
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.iml
|
||||||
|
*.iml
|
||||||
|
.settings/
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# temp folder #
|
||||||
|
######################
|
||||||
|
target/
|
||||||
|
classes/
|
||||||
|
bin/
|
||||||
|
*.*~
|
13
src/layer.js
13
src/layer.js
|
@ -1042,7 +1042,11 @@ layer.photos = function(options, loop, key){
|
||||||
options.img = options.img || 'img';
|
options.img = options.img || 'img';
|
||||||
|
|
||||||
var success = options.success;
|
var success = options.success;
|
||||||
delete options.success;
|
/*
|
||||||
|
闲心的源码中有以下这句,删除了options中的success方法,所以不会在下面的success回调中执行传进来的回调函数
|
||||||
|
删除这里的注释,就可以在下面的success回调中执行options中传入的回调函数
|
||||||
|
*/
|
||||||
|
//delete options.success;
|
||||||
|
|
||||||
if(!type){ //页面直接获取
|
if(!type){ //页面直接获取
|
||||||
var parent = $(options.photos), pushData = function(){
|
var parent = $(options.photos), pushData = function(){
|
||||||
|
@ -1217,10 +1221,17 @@ layer.photos = function(options, loop, key){
|
||||||
dict.imgsee = layero.find('.layui-layer-imguide,.layui-layer-imgbar');
|
dict.imgsee = layero.find('.layui-layer-imguide,.layui-layer-imgbar');
|
||||||
dict.event(layero);
|
dict.event(layero);
|
||||||
options.tab && options.tab(data[start], layero);
|
options.tab && options.tab(data[start], layero);
|
||||||
|
/*
|
||||||
|
此处执行options中传入的success回调函数
|
||||||
|
*/
|
||||||
typeof success === 'function' && success(layero);
|
typeof success === 'function' && success(layero);
|
||||||
}, end: function(){
|
}, end: function(){
|
||||||
dict.end = true;
|
dict.end = true;
|
||||||
$(document).off('keyup', dict.keyup);
|
$(document).off('keyup', dict.keyup);
|
||||||
|
/*
|
||||||
|
此处执行options中传入的end回调函数
|
||||||
|
*/
|
||||||
|
typeof end === 'function' && end();
|
||||||
}
|
}
|
||||||
}, options));
|
}, options));
|
||||||
}, function(){
|
}, function(){
|
||||||
|
|
Loading…
Reference in New Issue