1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 02:10:24 +00:00

[upgrade jquery] modifications, & cleaned up code & files

This commit is contained in:
llj
2018-02-05 16:47:56 +08:00
parent 2d98cc405d
commit 88478dee1d
159 changed files with 591 additions and 21432 deletions

View File

@@ -89,12 +89,11 @@ define([
var _this = this;
var originalWindowWidth = $(window).width();
$(window).resize(function() {
$(window).on('resize', function() {
var curWidth = $(window).width();
if (_this.currentView.reset) {
if ((originalWindowWidth < 768 && curWidth >= 768 ) ||
(originalWindowWidth >= 768 && curWidth < 768)) {
// Todo
_this.currentView.reset();
}
}
@@ -102,7 +101,7 @@ define([
});
// for popups such as '#share-popup'
$(window).resize(function() {
$(window).on('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) {
@@ -120,8 +119,8 @@ define([
});
$('#info-bar .close').click(Common.closeTopNoticeBar);
$('#top-browser-tip-close').click(function () {
$('#info-bar .close').on('click', Common.closeTopNoticeBar);
$('#top-browser-tip-close').on('click', function () {
$('#top-browser-tip').addClass('hide');
});
},