Module: check_mk
Branch: master
Commit: 473da023d29982cad722c77dbe81cd9761cecc33
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=473da023d29982…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 21 16:11:05 2016 +0100
For simplicity/testing of element dragger: Do not use ajax call, instead reload the page
Change-Id: I3ab6a7a2b99e70c8ddeaa8cb6fdfc64cedeb2363
---
web/htdocs/js/checkmk.js | 14 ++++++++------
web/htdocs/wato.py | 1 -
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 15e8513..d1d6aa6 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1823,12 +1823,14 @@ function finalize_dragging()
index -= 1;
var url = g_dragging.base_url + "&_index="+encodeURIComponent(index);
- call_ajax(url, {
- method : "GET",
- response_handler : handle_finalize_dragging,
- error_handler : handle_finalize_dragging_error,
- plain_error : true
- });
+ location.href = url;
+
+ //call_ajax(url, {
+ // method : "GET",
+ // response_handler : handle_finalize_dragging,
+ // error_handler : handle_finalize_dragging_error,
+ // plain_error : true
+ //});
}
function handle_finalize_dragging(handler_data, response_text) {
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index dc49052..2951568 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -12289,7 +12289,6 @@ class ModeEditRuleset(WatoMode):
ruleset.move_rule_to_top(rule)
elif action == "move_to":
ruleset.move_rule_to(rule, int(html.var("_index")))
- return ""
else:
ruleset.move_rule_to_bottom(rule)