rebuild GUI structure(only changed modules' name)
[vnfsdk/refrepo.git] / extsys / src / main / webapp / extsys / vim / js / vimUtil.js
1 /*
2  * Copyright 2016-2017 ZTE Corporation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 var resUtil = {};
17
18 resUtil.tooltipVimStatus = function () {
19     $("[data-toggle='tooltip']").tooltip();
20
21 }
22
23 resUtil.growl = function (message, type) {
24     $.growl({
25         icon: "fa fa-envelope-o fa-lg",
26         title: "  Notice: ",
27         message: message + "        "
28     }, {
29         type: type
30     });
31     /*
32      $.bootstrapGrowl(message, {
33      ele: 'body', // which element to append to
34      type: type, // (null, 'info', 'danger', 'success')
35      offset: {from: 'bottom', amount: 20}, // 'top', or 'bottom'
36      align: 'right', // ('left', 'right', or 'center')
37      width: 'auto', // (integer, or 'auto')
38      delay: 3000, // Time while the message will be displayed. It's not equivalent to the *demo* timeOut!
39      allow_dismiss: false, // If true then will display a cross to close the popup.
40      stackup_spacing: 10 // spacing between consecutively stacked growls.
41      });
42      */
43 }
44
45
46
47
48
49
50
51