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 badges1 Answer
Reset to default 16Try safari.self.hide()
instead.
本文标签: javascriptClose Safari popover using button click within popoverStack Overflow
版权声明:本文标题:javascript - Close Safari popover using button click within popover - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741323138a2372322.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论