projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deutlich machen, dass hier auf das der Klasse entsprechende Profil geprüft wird.
[kivitendo-erp.git]
/
js
/
client_js.js
diff --git
a/js/client_js.js
b/js/client_js.js
index
4697fa6
..
f39b192
100644
(file)
--- a/
js/client_js.js
+++ b/
js/client_js.js
@@
-29,13
+29,9
@@
ns.eval_json_result = function(data) {
$(data.eval_actions).each(function(idx, action) {
// console.log("ACTION " + action[0] + " ON " + action[1]);
$(data.eval_actions).each(function(idx, action) {
// console.log("ACTION " + action[0] + " ON " + action[1]);
- // ## Non-jQuery methods ##
- if (action[0] == 'flash') kivi.display_flash(action[1], action[2]);
-
// ## jQuery basics ##
// ## jQuery basics ##
-
// Basic effects
// Basic effects
-
else
if (action[0] == 'hide') $(action[1]).hide();
+
if (action[0] == 'hide') $(action[1]).hide();
else if (action[0] == 'show') $(action[1]).show();
else if (action[0] == 'toggle') $(action[1]).toggle();
else if (action[0] == 'show') $(action[1]).show();
else if (action[0] == 'toggle') $(action[1]).toggle();
@@
-127,7
+123,10
@@
ns.eval_json_result = function(data) {
// ## other stuff ##
else if (action[0] == 'redirect_to') window.location.href = action[1];
// ## other stuff ##
else if (action[0] == 'redirect_to') window.location.href = action[1];
+ else if (action[0] == 'flash') kivi.display_flash(action[1], action[2]);
else if (action[0] == 'reinit_widgets') kivi.reinit_widgets();
else if (action[0] == 'reinit_widgets') kivi.reinit_widgets();
+ else if (action[0] == 'run') kivi.run(action[1], action.slice(2, action.length));
+ else if (action[0] == 'run_once_for') kivi.run_once_for(action[1], action[2], action[3]);
else console.log('Unknown action: ' + action[0]);
else console.log('Unknown action: ' + action[0]);