Skip to content

Commit

Permalink
Merge pull request #541 from ESIPFed/autosave-code
Browse files Browse the repository at this point in the history
Autosave code on Run
  • Loading branch information
meghanakr7 authored Jun 30, 2024
2 parents 8aca1af + 9239c70 commit bdd0569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 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 @@ -2255,6 +2254,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 bdd0569

Please sign in to comment.