We would like to hide "Add flag to issue" from the context menu in the board view.
Tried this but to no avail:
AJS.toInit(function ($) { $('.ajs-layer box-shadow active').ajaxComplete(function () { AJS.$("#ghx-issue-ctx-action-flag-toggle").hide() }); });
How can we listen to the even and hide the entry with just plain javascript integrated via announcement banner.
Thank you.
Found a solution:
if(document.URL.indexOf("rapidView=666") >= 0){ AJS.$(document).on("showLayer", function(){ $("#ghx-issue-ctx-action-flag-toggle").css("display", "none"); }); }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.