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