fix admin tinymce init, misc admin fixes

This commit is contained in:
Florian BLOUET
2015-11-25 18:52:49 +01:00
parent 2bb64981b7
commit 1010f1820c
10 changed files with 45 additions and 15 deletions

View File

@@ -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);
}
});
};