Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function(){
  8. var win;
  9. var button = Ext.get('show-btn');
  10. button.on('click', function(){
  11. // create the window on the first click and reuse on subsequent clicks
  12. if(!win){
  13. win = new Ext.Window({
  14. applyTo:'hello-win',
  15. layout:'fit',
  16. width:500,
  17. height:300,
  18. closeAction:'hide',
  19. plain: true,
  20. items: new Ext.TabPanel({
  21. applyTo: 'hello-tabs',
  22. autoTabs:true,
  23. activeTab:0,
  24. deferredRender:false,
  25. border:false
  26. }),
  27. buttons: [{
  28. text:'Submit',
  29. disabled:true
  30. },{
  31. text: 'Close',
  32. handler: function(){
  33. win.hide();
  34. }
  35. }]
  36. });
  37. }
  38. win.show(this);
  39. });
  40. });