extend.ui.js 492 B

1234567891011121314151617181920
  1. window.openInEditWin = function(e)
  2. {
  3. let url = $(e.target).data('url');
  4. if(typeof url == 'undefined') url = $(e.target).closest('button[data-call="openInEditWin"]').data('url');
  5. parent.$('#editWin').attr('src', url);
  6. };
  7. window.setHeight = function()
  8. {
  9. codeHeight = parent.$('#extendWin').height();
  10. $('.panel').height(codeHeight);
  11. }
  12. parent.$('#extendWin').attr('data-url', location.href);
  13. setHeight();
  14. window.addEventListener('resize', function()
  15. {
  16. setHeight();
  17. });