Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Close Safari popover using button click within popover

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).

like image 366
Vivek Avatar asked Apr 26 '12 18:04

Vivek


1 Answers

Try safari.self.hide() instead.

like image 200
chulster Avatar answered Oct 14 '22 23:10

chulster