1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Feature #3748: Make Marketplace datatable to have a max of 1 item selected

This commit is contained in:
Carlos Martín 2015-06-08 17:09:17 +02:00
parent 4b22d563b2
commit 5566bc230e
2 changed files with 6 additions and 1 deletions

View File

@ -32,7 +32,7 @@ define(function(require) {
</div>',
buttons: Buttons,
actions: Actions,
dataTable: new Table(DATATABLE_ID, {actions: true, info: true}),
dataTable: new Table(DATATABLE_ID, {actions: true, info: true, oneSelection: true}),
panels: _panels,
formPanels: _formPanels,
dialogs: _dialogs

View File

@ -114,6 +114,7 @@ define(function(require) {
'initialize': _initialize,
'initCheckAllBoxes': _initCheckAllBoxes,
'tableCheckboxesListener': _tableCheckboxesListener,
'onlyOneCheckboxListener': _onlyOneCheckboxListener,
'infoListener': _infoListener,
'addElement': _addElement,
'deleteElement': _deleteElement,
@ -162,6 +163,10 @@ define(function(require) {
this.tableCheckboxesListener();
}
if (this.conf.oneSelection == true) {
this.onlyOneCheckboxListener();
}
if (this.conf.info) {
this.infoListener(this.resource + ".show", this.tabId);
}