|
@@ -845,8 +845,13 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|
|
}
|
|
|
}, options ? options : {});
|
|
|
if ($(window).width() < 480 || (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream && top.$(".tab-pane.active").size() > 0)) {
|
|
|
- options.area = [top.$(".tab-pane.active").width() + "px", top.$(".tab-pane.active").height() + "px"];
|
|
|
- options.offset = [top.$(".tab-pane.active").scrollTop() + "px", "0px"];
|
|
|
+ if (top.$(".tab-pane.active").length > 0) {
|
|
|
+ options.area = [top.$(".tab-pane.active").width() + "px", top.$(".tab-pane.active").height() + "px"];
|
|
|
+ options.offset = [top.$(".tab-pane.active").scrollTop() + "px", "0px"];
|
|
|
+ } else {
|
|
|
+ options.area = [$(window).width() + "px", $(window).height() + "px"];
|
|
|
+ options.offset = ["0px", "0px"];
|
|
|
+ }
|
|
|
}
|
|
|
return Layer.open(options);
|
|
|
},
|