Skip to content

Commit

Permalink
auto save on run
Browse files Browse the repository at this point in the history
  • Loading branch information
meghanakr7 committed Jun 28, 2024
1 parent 8aca1af commit cd48f2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/resources/static/js/gw.process.js
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,6 @@ GW.process = {

$("#edit-run-process-" + GW.process.cmid).click(function () {
//not finished yet

GW.process.runProcess(msg.id, msg.name, msg.lang);
});
})
Expand Down Expand Up @@ -1939,6 +1938,7 @@ GW.process = {
GW.process.expand(req.lang);

if (run)
GW.process.editSwitch();
GW.process.runProcess(
msg.id,
msg.name,
Expand Down Expand Up @@ -2255,6 +2255,7 @@ GW.process = {
* @param {*} lang
*/
runProcess: function (pid, pname, lang, callback_func) {
GW.process.editSwitch();
if (!GW.process.isSaved) {
if (
confirm(
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/js/gw.process.sidepanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ GW.process.sidepanel = {
*/
runProcess: function (pid, pname, lang) {
GW.process.process_id = pid;

GW.process.sidepanel.editSwitch();
GW.process.runProcess(
pid,
pname,
Expand Down

0 comments on commit cd48f2e

Please sign in to comment.