fe-popup.js 575 B

12345678910111213141516171819202122
  1. /**
  2. * FeHelper弹出(下拉)页面
  3. * @author zhaoxianlie
  4. */
  5. $(function () {
  6. // 获取后台页面,返回window对象
  7. var bgPage = chrome.extension.getBackgroundPage();
  8. // 菜单点击以后执行的动作
  9. jQuery('ul.fe-function-list li').click(function (e) {
  10. var msgType = $(this).attr('data-msgtype');
  11. var isUseFile = $(this).attr('data-usefile');
  12. bgPage.BgPageInstance.runHelper({
  13. msgType:MSG_TYPE[msgType],
  14. useFile:isUseFile
  15. });
  16. window.close();
  17. });
  18. });