mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
[mobile] redesigned big modal popups
This commit is contained in:
@@ -99,6 +99,25 @@ define([
|
||||
originalWindowWidth = curWidth;
|
||||
});
|
||||
|
||||
// for popups such as '#share-popup'
|
||||
$(window).resize(function() {
|
||||
var $el = $('#share-popup, #repo-share-link-admin-dialog, #repo-folder-perm-popup, #folder-perm-popup');
|
||||
if ($el.is(':visible')) {
|
||||
if ($(window).width() < 768) {
|
||||
$el.css({
|
||||
'width': $(window).width() - 50,
|
||||
'height': $(window).height() - 50,
|
||||
'overflow': 'auto'
|
||||
});
|
||||
$.modal.update($(window).height() - 50, $(window).width() - 50);
|
||||
} else {
|
||||
$el.removeAttr('style');
|
||||
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#info-bar .close').click(Common.closeTopNoticeBar);
|
||||
$('#top-browser-tip-close').click(function () {
|
||||
$('#top-browser-tip').addClass('hide');
|
||||
|
Reference in New Issue
Block a user