mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
fix admin tinymce init, misc admin fixes
This commit is contained in:
@@ -21,7 +21,7 @@ define([
|
||||
eventManager: _.extend({}, Backbone.Events)
|
||||
};
|
||||
|
||||
var pullNotifications = function (){
|
||||
window.pullNotifications = function (){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: AdminApp.$scope.data("notif-url"),
|
||||
@@ -31,10 +31,10 @@ define([
|
||||
usr : AdminApp.$scope.data("usr")
|
||||
},
|
||||
error: function(){
|
||||
window.setTimeout("pollNotifications();", 10000);
|
||||
window.setTimeout("pullNotifications();", 10000);
|
||||
},
|
||||
timeout: function(){
|
||||
window.setTimeout("pollNotifications();", 10000);
|
||||
window.setTimeout("pullNotifications();", 10000);
|
||||
},
|
||||
success: function(data){
|
||||
if (data) {
|
||||
@@ -44,7 +44,7 @@ define([
|
||||
if (data.apps && parseInt(data.apps) > 1) {
|
||||
t = Math.round((Math.sqrt(parseInt(data.apps)-1) * 1.3 * 120000));
|
||||
}
|
||||
window.setTimeout("pollNotifications();", t);
|
||||
window.setTimeout("pullNotifications();", t);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user