From 7e68853e472ae471c9375ec7f40be0bf67f1ae92 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 4 Sep 2018 03:18:56 -0400 Subject: [PATCH] Update changelog. Signed-off-by: Roberto Rosario --- HISTORY.rst | 3 +++ mayan/apps/appearance/static/appearance/js/mayan_app.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index ea73e8fd7a..f7682a9e4d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -124,6 +124,9 @@ - Remove the duplicated setting pdftotext_path from the OCR path. This is now handled by the document parsing app. - Implement partial refresh of the main menu. +- Remove usage of pace.js. Would cause XMLRequest to fallback to + synchronous mode. +- Add custom AJAX spinner. 3.0.3 (2018-08-17) ================== diff --git a/mayan/apps/appearance/static/appearance/js/mayan_app.js b/mayan/apps/appearance/static/appearance/js/mayan_app.js index 677d3b32e8..22ba8ca2a4 100644 --- a/mayan/apps/appearance/static/appearance/js/mayan_app.js +++ b/mayan/apps/appearance/static/appearance/js/mayan_app.js @@ -114,13 +114,14 @@ class MayanApp { } doRefreshMainMenu (options) { + var self = this; $.ajax({ complete: function() { setTimeout(app.doRefreshMainMenu, options.interval, options); }, success: function(data) { var $elements = $('.dropdown.open'); - if (($elements.length === 0) && (this.ajaxExecuting === false)) { + if ($elements.length === 0) { // Don't refresh the HTML if there are open dropdowns $('#main-menu').html(data); }