mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 11:11:28 +00:00
fancier label test dialog
This commit is contained in:
@@ -1924,7 +1924,11 @@ Position.Center = function(element, parent) {
|
||||
function labeltest_callback() {
|
||||
var container = document.getElementById('label_test_result');
|
||||
if (xmlhttp.readyState == 4) {
|
||||
|
||||
container.innerHTML=xmlhttp.responseText;
|
||||
if (!Element.visible(container)) {
|
||||
Effect.SlideDown(container, { duration : 0.5 });
|
||||
}
|
||||
notify("");
|
||||
}
|
||||
}
|
||||
@@ -1932,14 +1936,14 @@ function labeltest_callback() {
|
||||
function labelTest() {
|
||||
|
||||
var container = document.getElementById('label_test_result');
|
||||
container.style.display = "block";
|
||||
container.innerHTML = "<p>Loading, please wait...</p>";
|
||||
|
||||
var form = document.forms['label_edit_form'];
|
||||
|
||||
var sql_exp = form.sql_exp.value;
|
||||
var description = form.description.value;
|
||||
|
||||
notify_progress("Loading, please wait...");
|
||||
|
||||
xmlhttp.open("GET", "backend.php?op=pref-labels&subop=test&expr=" +
|
||||
param_escape(sql_exp) + "&descr=" + param_escape(description), true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user