1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 16:36:15 +00:00

[mobile] redesigned big modal popups

This commit is contained in:
llj
2016-12-03 17:29:41 +08:00
parent a0ff7afaf8
commit 591ab5e517
9 changed files with 152 additions and 67 deletions

View File

@@ -21,6 +21,13 @@ define([
this.render();
this.$('.op-target').css({'max-width':280}); // for long repo name
if ($(window).width() < 768) {
this.$el.css({
'width': $(window).width() - 50,
'height': $(window).height() - 50,
'overflow': 'auto'
});
}
this.$el.modal({
focus: false,
onClose: function() {
@@ -28,10 +35,12 @@ define([
$.modal.close();
}
});
$("#simplemodal-container").css({
'width':'auto',
'height':'auto'
});
if ($(window).width() >= 768) {
$("#simplemodal-container").css({
'width':'auto',
'height':'auto'
});
}
this.$('.js-tabs').tabs();
this.userPerm = new UserFolderPerm({repo_id: this.repo_id});

View File

@@ -20,11 +20,18 @@ define([
this.render();
this.$('.op-target').css({'max-width':280}); // for long repo name
this.$el.modal();
$("#simplemodal-container").css({
'width':'auto',
'height':'auto'
});
if ($(window).width() >= 768) {
this.$el.modal({focus: false});
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
} else {
this.$el.css({
'width': $(window).width() - 50,
'height': $(window).height() - 50,
'overflow': 'auto'
}).modal({focus:false});
}
this.$('.js-tabs').tabs();
var downloadLinks = new DownloadLinks({repo_id: this.repo_id});