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:
parent
4b22d563b2
commit
5566bc230e
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user