From 498f4d77d2868780e9975085fa9a2e8ebbe75ea3 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 12 Jan 2019 21:46:56 -0500 Subject: 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 --- app/model/issue.php | 3 +++ 1 file changed, 3 insertions(+) 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); } ?> -- cgit v1.2.3