Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
New ability in FormManager button: simply trigger client action.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 22, 2013
1 parent 97582cc commit db11178
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions core/src/plugins/gui.ajax/res/js/ajaxplorer/class.FormManager.js
Expand Up @@ -111,11 +111,17 @@ Class.create("FormManager", {
element.observe("click", function(event){
element.addClassName('SF_inlineButtonWorking');
var testValues = $H();
var choicesValue = param.get("choices").split(":");
var firstPart = choicesValue.shift();
if(firstPart == "run_client_action"){
element.removeClassName('SF_inlineButtonWorking');
ajaxplorer.actionBar.fireAction(choicesValue.shift());
return;
}
testValues.set('get_action', firstPart);
this.serializeParametersInputs(form, testValues, "DRIVER_OPTION_");
var conn = new Connexion();

var choicesValue = param.get("choices").split(":");
testValues.set('get_action', choicesValue.shift());
if(choicesValue.length > 1){
testValues.set("action_plugin_id", choicesValue.shift());
testValues.set("action_plugin_method", choicesValue.shift());
Expand Down

0 comments on commit db11178

Please sign in to comment.