aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2016-09-15 00:37:15 +0800
committerLuji7 <lu.ji3@zte.com.cn>2016-09-15 00:37:15 +0800
commit56c2439e74a5a17a6ca864371d4c3a621be566c4 (patch)
treeeeeb3956dea78a6f0576171eb5abdb7c418ac60b /openo-portal
parenta5777c5b1a0b42ccdbbf7ee793b4717a118cbb84 (diff)
add parameter tab event registration
Change-Id: Ifabf5d41760a01a5a70ee52caca1a078d1729463 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'openo-portal')
-rw-r--r--openo-portal/portal-lifecyclemgr/js/gsolcm.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/openo-portal/portal-lifecyclemgr/js/gsolcm.js b/openo-portal/portal-lifecyclemgr/js/gsolcm.js
index 1a94feba..d66df947 100644
--- a/openo-portal/portal-lifecyclemgr/js/gsolcm.js
+++ b/openo-portal/portal-lifecyclemgr/js/gsolcm.js
@@ -14,8 +14,20 @@
* limitations under the License.
*/
var templateParameters = {
- templateName: '',
- parameters: []
+ templateName: '',
+ parameters: []
+};
+var lcmHandler = function(){
+ this._addOwnEvents();
+};
+
+lcmHandler.prototype = {
+ _addOwnEvents : function () {
+ $('a[data-toggle="tab"]').on('show.bs.tab', this.beforeParameterTabShow);
+ },
+ beforeParameterTabShow : function (event) {
+ renderTemplateParametersTab();
+ }
};
function renderTemplateParametersTab() {
@@ -25,7 +37,7 @@ function renderTemplateParametersTab() {
}
function fetchTemplateParameterDefinitions(parameters) {
- var serviceTemplate = parameters.name;
+ var serviceTemplate = parameters.templateName;
var currentServiceTemplate = $("#svcTempl").val();
// Do not need to fetch template parameters if template do not change in UI.
if(serviceTemplate === currentServiceTemplate) {