{ id: 'db_node_%%%NODEID%%%', layout:'vbox', tools: [{ id:'gear', handler: function(){ } }], frame: true, draggable: false, collapsible: false, bodyStyle: 'padding: 0px;', title: '%%%NODENAME%%%', sukaMineWidth: -1, /* { id: 'db_node_%%%NODEID%%%_pic', border: true, width: '100%', //html: '
 
 
%%%HBTN%%% 
' //html: '
' //html: '' html:'' }, */ items:[{ xtype: 'button', id: 'db_download_video', scale: 'large', enableToggle: true, disabled: true, text: 'Download Video File', width: '100%', handler: function(){ if( DownloadVideoLink!= '' ){ var link = document.createElement("a"); // If you don't know the name or want to use // the webserver default set name = '' //link.setAttribute('download', name ); link.setAttribute('download', '' ); link.href = DownloadVideoLink; document.body.appendChild(link); link.click(); link.remove(); } } }], listeners:{ resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ if( rawWidth!= undefined ){ if( p.sukaMineWidth != adjWidth ){ p.sukaMineWidth = adjWidth; var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; p.setHeight( XX + 32 ); var z = Ext.getCmp('db_download_video'); z.setHeight( XX ); }; }; }, afterrender: function( p ){ var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; p.setHeight( xx + 32 ); //var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); //z.setHeight( xx - 132 ); /* document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_020_%%%NODEID%%%').addEventListener( 'mousedown', makePtzStop ); */ } } }