From 0c6f085ce99d709c86876032f5f88c792b2a531e Mon Sep 17 00:00:00 2001 From: tofulm Date: Thu, 12 Mar 2020 17:20:31 +0100 Subject: [PATCH] ajout d'un cursor wait sur les boutons action --- js/gamutable.es6.js | 6 ++++++ js/gamutable.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index dd3aa38..9cf2bef 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -2,6 +2,9 @@ jQuery(function() { $('#app').on('click', '.url_action', function(e) { e.preventDefault(); e.stopPropagation(); + $('html').css('cursor', 'wait'); + $('td').css('cursor', 'wait'); + $('a').css('cursor', 'wait'); let url = $(this).attr('href'); $.ajax({ url: url, @@ -137,6 +140,9 @@ let monTableau = { this.crayons = config.crayons; this.table = data; Vue.nextTick(function() { + $('html').css('cursor', 'auto'); + $('td').css('cursor', 'auto'); + $('a').css('cursor', 'pointer'); console.timeEnd('Chargement de VueJs APRES Ajax'); }); }) diff --git a/js/gamutable.js b/js/gamutable.js index 812ecce..3fecb27 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -12,6 +12,9 @@ jQuery(function () { $('#app').on('click', '.url_action', function (e) { e.preventDefault(); e.stopPropagation(); + $('html').css('cursor', 'wait'); + $('td').css('cursor', 'wait'); + $('a').css('cursor', 'wait'); var url = $(this).attr('href'); $.ajax({ url: url, @@ -160,6 +163,9 @@ var monTableau = { _this2.crayons = config.crayons; _this2.table = data; Vue.nextTick(function () { + $('html').css('cursor', 'auto'); + $('td').css('cursor', 'auto'); + $('a').css('cursor', 'pointer'); console.timeEnd('Chargement de VueJs APRES Ajax'); }); }).catch(function (error) {