admin管理员组

文章数量:1287893

I am working on a Safari extension which displays a popover on clicking the toolbar button. I have added 2 buttons in the popover cancel and save. I want to dismiss the popover on clicking the buttons. How can I do this?

I tried using self.close() but once I click on any of the buttons, the popover closes but is not displayed again on clicking the toolbar. (The toolbar button does not register the click).

I am working on a Safari extension which displays a popover on clicking the toolbar button. I have added 2 buttons in the popover cancel and save. I want to dismiss the popover on clicking the buttons. How can I do this?

I tried using self.close() but once I click on any of the buttons, the popover closes but is not displayed again on clicking the toolbar. (The toolbar button does not register the click).

Share Improve this question asked Apr 26, 2012 at 18:12 VivekVivek 7001 gold badge12 silver badges24 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 16

Try safari.self.hide() instead.

本文标签: javascriptClose Safari popover using button click within popoverStack Overflow