Skip to content

Commit

Permalink
Add rowaction option 'runjs' to run a javascript snippet when the act…
Browse files Browse the repository at this point in the history
…ion is triggered
  • Loading branch information
bartnv committed Feb 1, 2023
1 parent 4fe73e5 commit 6559432
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clientside.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ function doAction(button, addparam) {
let action = Array.isArray(this.options.rowaction)?this.options.rowaction[actionid]:this.options.rowaction;
if (data.error) appError(data.error, table);
if (data.usererror) userError(data.usererror);
if (action.runjs) eval(action.runjs);
if (data.output) {
if (action.output == 'block') {
// $('#block_' + this.block).replaceWith(data.output);
Expand Down

0 comments on commit 6559432

Please sign in to comment.