1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +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

@@ -64,7 +64,7 @@ define([
$('#wrapper').prepend($el);
}
}
$('.top-bar-click', $el).click(function() {
$('.top-bar-click', $el).on('click', function() {
location.reload(true);
});
}
@@ -74,7 +74,7 @@ define([
// request every `unread_notifications_request_interval` seconds
var reqInterval = setInterval(reqUnreadNum, (app.pageOptions.unread_notifications_request_interval || 3*60)*1000);
$('#notice-icon').click(function() {
$('#notice-icon').on('click', function() {
_this.toggle();
return false;
});
@@ -158,7 +158,7 @@ define([
_this.$loadingTip.hide();
var err_msg;
if (xhr.responseText) {
err_msg = $.parseJSON(xhr.responseText).error;
err_msg = JSON.parse(xhr.responseText).error;
} else {
err_msg = gettext('Please check the network.');
}