From 08a9449843a3b13d593c608619e6a55b938aca85 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 5 Oct 2016 15:42:12 -0400 Subject: [PATCH] when refreshing flags page, open flag if one was open before --- public/src/admin/manage/flags.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/src/admin/manage/flags.js b/public/src/admin/manage/flags.js index 15417faa30..30209bca11 100644 --- a/public/src/admin/manage/flags.js +++ b/public/src/admin/manage/flags.js @@ -22,6 +22,11 @@ define('admin/manage/flags', [ updateFlagDetails(ajaxify.data.posts); components.get('posts/flags').on('click', '[component="posts/flag/update"]', updateFlag); + + // Open flag as indicated in location bar + if (window.location.hash.startsWith('#flag-pid-')) { + $(window.location.hash).collapse('toggle'); + } }; function handleDismiss() {