ajout d'un cursor wait sur les boutons action
This commit is contained in:
parent
30026ce711
commit
0c6f085ce9
2 changed files with 12 additions and 0 deletions
|
@ -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');
|
||||
});
|
||||
})
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue