petite simplification du js
This commit is contained in:
parent
f5138c41e5
commit
e32e49c353
2 changed files with 20 additions and 28 deletions
|
@ -1,19 +1,15 @@
|
||||||
jQuery(function() {
|
jQuery(function() {
|
||||||
gamutable();
|
$('#app').on('click', '.url_action', function(e) {
|
||||||
//onAjaxLoad(gamutable);
|
e.preventDefault();
|
||||||
function gamutable() {
|
e.stopPropagation();
|
||||||
$('#app').on('click', '.url_action', function(e) {
|
let url = $(this).attr('href');
|
||||||
e.preventDefault();
|
$.ajax({
|
||||||
e.stopPropagation();
|
url: url,
|
||||||
let url = $(this).attr('href');
|
async: true
|
||||||
$.ajax({
|
}).done(function() {
|
||||||
url: url,
|
app.rechargerJson();
|
||||||
async: true
|
|
||||||
}).done(function() {
|
|
||||||
app.rechargerJson();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
function recupJson(d) {
|
function recupJson(d) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -9,21 +9,17 @@ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) ||
|
||||||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
||||||
|
|
||||||
jQuery(function () {
|
jQuery(function () {
|
||||||
gamutable(); //onAjaxLoad(gamutable);
|
$('#app').on('click', '.url_action', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
function gamutable() {
|
e.stopPropagation();
|
||||||
$('#app').on('click', '.url_action', function (e) {
|
var url = $(this).attr('href');
|
||||||
e.preventDefault();
|
$.ajax({
|
||||||
e.stopPropagation();
|
url: url,
|
||||||
var url = $(this).attr('href');
|
async: true
|
||||||
$.ajax({
|
}).done(function () {
|
||||||
url: url,
|
app.rechargerJson();
|
||||||
async: true
|
|
||||||
}).done(function () {
|
|
||||||
app.rechargerJson();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function recupJson(d) {
|
function recupJson(d) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue