when refreshing flags page, open flag if one was open before

v1.18.x
Julian Lam 8 years ago
parent 80fe6bde5d
commit 08a9449843

@ -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() {

Loading…
Cancel
Save