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.
|
|
//<?php require_once('../../js_asm.php'); ?>
function updateDashBoardItemLayout( id, x, y ){ Ext.Ajax.request({ url: '/lib/controller/updateDashBoardItems.php', params: { SITE: <?=$SiteID;?>, UID: <?=$UserID;?>, SID: '<?=$Session;?>', PANEL: id, X: x, Y: y }, success: function( response, opts ){ //var data = Ext.decode(response.responseText);
//var tPanel = Ext.getCmp('main_portal');
//tPanel.removeAll(true);
//for( i=0; i < data.length; i++) tPanel.add( data[i] );
//tPanel.doLayout();
}, failure: function( response, opts ) { //var tPanel = Ext.getCmp('main_portal');
//tPanel.remove(0);
//tPanel.add( { html: 'Failed to load dashboard!' } );
//tPanel.doLayout();
} });};
function loadDashBoard(){ if( tlInterval!= null ){ window.clearInterval( tlInterval ); tlInterval = null; timelineObj = null; }; Ext.Ajax.request({ url: '/lib/controller/getDashBoardItems.php', params: { SITE: <?=$SiteID;?>, UID: <?=$UserID;?>, SID: '<?=$Session;?>' }, success: function( response, opts ){ var data = Ext.decode(response.responseText); var tPanel = Ext.getCmp('main_portal'); tPanel.removeAll(true); for( i=0; i < data.length; i++) tPanel.add( data[i] ); tPanel.doLayout(); }, failure: function( response, opts ) { var tPanel = Ext.getCmp('main_portal'); tPanel.remove(0); tPanel.add( { html: 'Failed to load dashboard!' } ); tPanel.doLayout(); } }); };
|