summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js
diff options
context:
space:
mode:
authorSeshu-Kumar-M <seshu.kumar.m@huawei.com>2016-09-23 21:50:10 +0800
committerSeshu-Kumar-M <seshu.kumar.m@huawei.com>2016-09-23 21:50:10 +0800
commit540f0bf70e65f982bdae95d3fb3a95db5a66bbe7 (patch)
tree6cac8f0301a4bf8c32bd6fcc402b3cb07162a9ce /openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js
parent5150528130a100b2ab712b60da5f90534e1dec7c (diff)
formatting the code, removing unnecessary imports and URL patterns correction
Change-Id: If3e556b40dfd722727156f70975eb93b94d9c088 Signed-off-by: Seshu-Kumar-M <seshu.kumar.m@huawei.com>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js')
-rw-r--r--openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js128
1 files changed, 64 insertions, 64 deletions
diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js
index c27dbf07..680ad113 100644
--- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js
+++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js
@@ -14,68 +14,68 @@
*/
-$(function(){
- $('.creat-btn').click(function(){
- $('#vmAppDialog').addClass('in').css({'display':'block'});
-
- });
- $('.close,.button-previous').click(function(){
- $('#vmAppDialog').removeClass('in').css('display','none');
- });
- $('.detail-top ul li').click(function(){
- $(this).addClass('current').siblings().removeClass('current');
- });
- $('.para').click(function(){
- if($('#serviceTemplateName').val() == ''){
- alert('Please choose the service templet!');
- $('#flavorTab').css('display','none');
- }else{
- $('#flavorTab').css('display','block');
- }
- $('#basicTab').css('display','block');
- });
- $('.basic').click(function(){
- $('#flavorTab').css('display','none');
- });
-
- $('.table tbody tr').click(function(){
- $(this).addClass('openoTable_row_selected').siblings().removeClass('openoTable_row_selected');
- });
- $('.table tr:odd').addClass('active');
- $('#false').click(function(){
- $('#vmAppDialog').addClass('in').css({'display':'block'});
- });
- $('.close,.button-previous').click(function(){
- $('#vmAppDialog').removeClass('in').css('display','none');
- });
- $('#filterTpLogicalType').click(function(){
- $('#filterTpLogicalType_select_popupcontainer').toggleClass('openo-hide');
- $('#filterTpLogicalType').toggleClass('openo-focus');
- var oLeft = $('#open_base_tpL_td6').offset().left;
- var oTop = $('#open_base_tpL_td6').offset().top;
- var oHeight = $('#open_base_tpL_td6').height();
- $('#filterTpLogicalType_select_popupcontainer').css({'left':oLeft,'top':oTop + oHeight + 10});
- });
- $('div.openo-select-popup-container>div.openo-select-item>label').click(function(){
- var Lvalue = $(this).html();
- $('#filterTpLogicalType_select_input').attr('value',Lvalue);
- $('#filterTpLogicalType_select_popupcontainer').addClass('openo-hide');
- $('#filterTpLogicalType').removeClass('openo-focus');
- });
- $.fn.serializeObject = function() {
- var o = {};
- var a = this.serializeArray();
- $.each(a, function() {
- if (o[this.name] !== undefined) {
- if (!o[this.name].push) {
- o[this.name] = [ o[this.name] ];
- }
- o[this.name].push(this.value || '');
- } else {
- o[this.name] = this.value || '';
- }
- });
- return o;
- };
-
+$(function () {
+ $('.creat-btn').click(function () {
+ $('#vmAppDialog').addClass('in').css({'display': 'block'});
+
+ });
+ $('.close,.button-previous').click(function () {
+ $('#vmAppDialog').removeClass('in').css('display', 'none');
+ });
+ $('.detail-top ul li').click(function () {
+ $(this).addClass('current').siblings().removeClass('current');
+ });
+ $('.para').click(function () {
+ if ($('#serviceTemplateName').val() == '') {
+ alert('Please choose the service templet!');
+ $('#flavorTab').css('display', 'none');
+ } else {
+ $('#flavorTab').css('display', 'block');
+ }
+ $('#basicTab').css('display', 'block');
+ });
+ $('.basic').click(function () {
+ $('#flavorTab').css('display', 'none');
+ });
+
+ $('.table tbody tr').click(function () {
+ $(this).addClass('openoTable_row_selected').siblings().removeClass('openoTable_row_selected');
+ });
+ $('.table tr:odd').addClass('active');
+ $('#false').click(function () {
+ $('#vmAppDialog').addClass('in').css({'display': 'block'});
+ });
+ $('.close,.button-previous').click(function () {
+ $('#vmAppDialog').removeClass('in').css('display', 'none');
+ });
+ $('#filterTpLogicalType').click(function () {
+ $('#filterTpLogicalType_select_popupcontainer').toggleClass('openo-hide');
+ $('#filterTpLogicalType').toggleClass('openo-focus');
+ var oLeft = $('#open_base_tpL_td6').offset().left;
+ var oTop = $('#open_base_tpL_td6').offset().top;
+ var oHeight = $('#open_base_tpL_td6').height();
+ $('#filterTpLogicalType_select_popupcontainer').css({'left': oLeft, 'top': oTop + oHeight + 10});
+ });
+ $('div.openo-select-popup-container>div.openo-select-item>label').click(function () {
+ var Lvalue = $(this).html();
+ $('#filterTpLogicalType_select_input').attr('value', Lvalue);
+ $('#filterTpLogicalType_select_popupcontainer').addClass('openo-hide');
+ $('#filterTpLogicalType').removeClass('openo-focus');
+ });
+ $.fn.serializeObject = function () {
+ var o = {};
+ var a = this.serializeArray();
+ $.each(a, function () {
+ if (o[this.name] !== undefined) {
+ if (!o[this.name].push) {
+ o[this.name] = [o[this.name]];
+ }
+ o[this.name].push(this.value || '');
+ } else {
+ o[this.name] = this.value || '';
+ }
+ });
+ return o;
+ };
+
}) \ No newline at end of file