code_junkie

IE7 Ext JS problem: Unspecified JS error on window.close()

Nov 14th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. function popupImage(term, imageNumber){
  2.  
  3. if(currentPopupWindow!=null){
  4. currentPopupWindow.close();
  5. }
  6.  
  7. currentPopupWindow = new Ext.Window({
  8. layout : 'fit',
  9. closeAction :'hide',
  10. plain : true,
  11. constrain : true,
  12. width: 300,
  13. border: false,
  14. html: "Blah blah content"<span onclick="currentPopupWindow.close();">cerrar</span>"
  15. });
  16.  
  17.  
  18.  
  19. currentPopupWindow.show(false, function(){
  20. var el = Ext.get("termimage");
  21. currentPopupWindow.setWidth(el.getWidth(true)+150);
  22. });
  23.  
  24. currentPopupWindow.anchorTo(Ext.get("dictionarycontainer"), "tl");
  25. }
  26.  
  27. currentPopupWindow.render(document.body);
  28. currentPopupWindow.alignTo(diccon, "tl", [40, 80]);
  29.  
  30. currentPopupWindow.show(false, function() {
  31. var el = Ext.get(termim);
  32. currentPopupWindow.setWidth(el.getWidth(true)+150);
  33. });
Add Comment
Please, Sign In to add comment