Pop-up webapp dialog with additional device info
On server side prepare device information data from z-push webservice response. On client side prepare dialog to show addition device information on row double click.
This commit is contained in:
@ -87,7 +87,11 @@ Zarafa.plugins.mdm.settings.MDMSettingsWidget = Ext.extend(Zarafa.settings.ui.Se
|
||||
ref : '../../../refresh',
|
||||
handler : this.onRefresh,
|
||||
scope : this
|
||||
}]
|
||||
}],
|
||||
listeners : {
|
||||
rowdblclick: this.onRowDblClick,
|
||||
scope : this
|
||||
}
|
||||
}]
|
||||
}]
|
||||
});
|
||||
@ -192,6 +196,21 @@ Zarafa.plugins.mdm.settings.MDMSettingsWidget = Ext.extend(Zarafa.settings.ui.Se
|
||||
onRefresh : function()
|
||||
{
|
||||
this.deviceGrid.getStore().load();
|
||||
},
|
||||
|
||||
/**
|
||||
* Function is called if a row in the grid gets double clicked.
|
||||
* Which is use to show a dialog with detail device information
|
||||
* @param {Ext.grid.GridPanel} grid The Grid on which the user double-clicked
|
||||
* @param {Number} rowIndex The Row number on which was double-clicked.
|
||||
*/
|
||||
onRowDblClick : function (grid, rowIndex)
|
||||
{
|
||||
var record = grid.getStore().getAt(rowIndex);
|
||||
Zarafa.core.data.UIFactory.openLayerComponent(Zarafa.core.data.SharedComponentType['mdm.dialog.mdmdevicedetails'], undefined, {
|
||||
manager : Ext.WindowMgr,
|
||||
record : record
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user