2 * Copyright 2016-2017 ZTE Corporation.
\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
8 * http://www.apache.org/licenses/LICENSE-2.0
\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
18 resUtil.tooltipVimStatus = function () {
\r
19 $("[data-toggle='tooltip']").tooltip();
\r
23 resUtil.growl = function (message, type) {
\r
25 icon: "fa fa-envelope-o fa-lg",
\r
26 title: " Notice: ",
\r
27 message: message + " "
\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