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