summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2019-01-12 21:46:56 -0500
committerMalf Furious <m@lfurio.us>2019-01-12 21:46:56 -0500
commit498f4d77d2868780e9975085fa9a2e8ebbe75ea3 (patch)
tree2c51715065a5ed013f30c76c0751bb22aec6d4e3 /app
parent9d8613d827dd6e99e36a24c4b37012b93b5e316c (diff)
downloadscrott-498f4d77d2868780e9975085fa9a2e8ebbe75ea3.tar.gz
scrott-498f4d77d2868780e9975085fa9a2e8ebbe75ea3.zip
Automatically show updated issues on page reload
When submitting the iss-mesg-add form and reloading the page, this line will inform the stdpage footer javascript to automatically show the affected issue modal. This is _really_ helpful when trying to make multiple POSTs to an issue, as the user is not taken out of the issue modal between each POST, requiring them to visually find it again in the list of open tickets. Signed-off-by: Malf Furious <m@lfurio.us>
Diffstat (limited to 'app')
-rw-r--r--app/model/issue.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/model/issue.php b/app/model/issue.php
index b78e93a..a9f6961 100644
--- a/app/model/issue.php
+++ b/app/model/issue.php
@@ -103,6 +103,9 @@ if (isAction("iss-mesg-add"))
logError(NOTICE, "Issue #" . $issue->numb . " closed");
$log = mesg::initNewLog("%s closed issue", $user, $issue);
}
+
+ /* automatically redisplay issue modal */
+ setAutoModal("#issueModal-" . $issue->guid);
}
?>