pull/49/merge
商商 2017-05-16 06:26:35 +00:00 committed by GitHub
commit a74b742deb
2 changed files with 84 additions and 1 deletions

72
.gitignore vendored Normal file
View File

@ -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/
*.*~

View File

@ -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(){