Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Commit 5674266

Browse files
authored
uses jQuery.remove() for greater protability
Internet Explorer's HTMLButtonElement doesn't support a .remove() function, but jQuery can remove the element across browsers.
1 parent 73e8e00 commit 5674266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/pr-triggerbutton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ define('plugin/prnfb/pr-triggerbutton', [
1313
var buttonText = $(auiButton).text().trim();
1414
if (buttonText === '' || buttonText === 'pr-triggerbutton') {
1515
//An empty button is added by 'client-web-item' in atlassian-plugin.xml
16-
auiButton.remove();
16+
$(auiButton).remove();
1717
}
1818
});
1919

0 commit comments

Comments
 (0)