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.

38 lines
1011 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. {
  2. id: 'db_node_%%%NODEID%%%',
  3. //xtype: 'portlet',
  4. layout:'fit',
  5. //width: 258,
  6. //height: %%%HEIGHT%%%+40,
  7. tools: [{
  8. id:'gear',
  9. handler: function(){
  10. //editAnalogStream( %%%STREAMID%%%, 1 );
  11. }
  12. }],
  13. frame: true,
  14. draggable: false,
  15. bodyStyle: 'padding: 0px;',
  16. title: '%%%NODENAME%%%',
  17. items:[{
  18. id: 'db_node_%%%NODEID%%%_pic',
  19. html: '',
  20. }],
  21. sukaMineWidth: -1,
  22. listeners:{
  23. resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){
  24. if( rawWidth!= undefined ){
  25. if( p.sukaMineWidth != adjWidth ){
  26. p.sukaMineWidth = adjWidth;
  27. var XX = 32 + p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%;
  28. p.setHeight( XX );
  29. };
  30. };
  31. var z = Ext.getCmp('db_node_%%%NODEID%%%_pic');
  32. z.update('<img data-enlargeable000 ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" id="img-%%%NODEID%%%" src="%%%SELURL%%%" width="100%" />');
  33. },
  34. afterrender: function( p ){
  35. var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%;
  36. p.setHeight( xx+32 );
  37. }
  38. }
  39. }