Skip to content
This repository has been archived by the owner on Dec 29, 2019. It is now read-only.

Commit

Permalink
Added ajax delay
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbee committed May 28, 2012
1 parent 1962669 commit b554d1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/Core/js/scripts.js
Expand Up @@ -6,7 +6,7 @@ var Dialog = new dialog;
var Page = new page;
var Variable = new variable;

var lastAjax = "";
var lastAjax = "Not set";

function load() {
document.getElementById('splashcontinue').style.display = "block";
Expand Down Expand Up @@ -169,7 +169,7 @@ function page() {
var query = "DELETE FROM `pages` WHERE `id` = "+id;
//console.log(query);
ajax("query", query);
ajax("pages", "");
delay('ajax("pages", "")', 100);
delay("document.getElementById('pagestable').innerHTML = lastAjax", 1500);
}
}
Expand All @@ -193,7 +193,7 @@ function variable() {
var query = "DELETE FROM `variables` WHERE `id` = "+id;
//console.log(query);
ajax("query", query);
ajax("variables", "");
delay('ajax("variables", "")', 100);
delay("document.getElementById('variablestable').innerHTML = lastAjax", 1500);
}
}
Expand Down

0 comments on commit b554d1e

Please sign in to comment.