1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- function CBusinessGlossaryMenuItem(parent, label, action, iconPath, style, webContentRoot, skin)
- {
-
- CQSMenuItem.call(this, parent, label, action, iconPath, style, webContentRoot, skin);
- };
- CBusinessGlossaryMenuItem.prototype = new CQSMenuItem();
- CBusinessGlossaryMenuItem.prototype.isEnabled = function()
- {
-
- var bIsEnabled = false;
- if (gsBusinessGlossaryURI && gsBusinessGlossaryURI.length > 0)
- {
-
- bIsEnabled = CQSMenuItem.prototype.isEnabled.call(this);
-
- if (bIsEnabled)
- {
-
-
- var oSelectionController = goApplicationManager.getSelectionController();
- if (oSelectionController)
- {
- var aSelected = oSelectionController.getSelections();
- for (var i = 0; i < aSelected.length; i++)
- {
- var aDisplayValues = aSelected[i].getDisplayValues();
- if (aDisplayValues && ! aDisplayValues[0])
- {
- bIsEnabled = false;
- break;
- }
- }
- }
- }
- }
- return bIsEnabled;
- };
|