Diffstat (limited to 'frontend/gamma/js/Bootstrap/bootstrap-popover.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/gamma/js/Bootstrap/bootstrap-popover.js | 137 |
1 files changed, 0 insertions, 137 deletions
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-popover.js b/frontend/gamma/js/Bootstrap/bootstrap-popover.js deleted file mode 100644 index 89e1edb..0000000 --- a/frontend/gamma/js/Bootstrap/bootstrap-popover.js +++ b/dev/null | |||
@@ -1,137 +0,0 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* =========================================================== | ||
25 | * bootstrap-popover.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#popovers | ||
27 | * =========================================================== | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * =========================================================== */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* POPOVER PUBLIC CLASS DEFINITION | ||
50 | * =============================== */ | ||
51 | |||
52 | var Popover = function (element, options) { | ||
53 | this.init('popover', element, options) | ||
54 | } | ||
55 | |||
56 | |||
57 | /* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js | ||
58 | ========================================== */ | ||
59 | |||
60 | Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, { | ||
61 | |||
62 | constructor: Popover | ||
63 | |||
64 | , setContent: function () { | ||
65 | var $tip = this.tip() | ||
66 | , title = this.getTitle() | ||
67 | , content = this.getContent() | ||
68 | |||
69 | $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title) | ||
70 | $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content) | ||
71 | |||
72 | $tip.removeClass('fade top bottom left right in') | ||
73 | } | ||
74 | |||
75 | , hasContent: function () { | ||
76 | return this.getTitle() || this.getContent() | ||
77 | } | ||
78 | |||
79 | , getContent: function () { | ||
80 | var content | ||
81 | , $e = this.$element | ||
82 | , o = this.options | ||
83 | |||
84 | content = $e.attr('data-content') | ||
85 | || (typeof o.content == 'function' ? o.content.call($e[0]) : o.content) | ||
86 | |||
87 | return content | ||
88 | } | ||
89 | |||
90 | , tip: function () { | ||
91 | if (!this.$tip) { | ||
92 | this.$tip = $(this.options.template) | ||
93 | } | ||
94 | return this.$tip | ||
95 | } | ||
96 | |||
97 | , destroy: function () { | ||
98 | this.hide().$element.off('.' + this.type).removeData(this.type) | ||
99 | } | ||
100 | |||
101 | }) | ||
102 | |||
103 | |||
104 | /* POPOVER PLUGIN DEFINITION | ||
105 | * ======================= */ | ||
106 | |||
107 | var old = $.fn.popover | ||
108 | |||
109 | $.fn.popover = function (option) { | ||
110 | return this.each(function () { | ||
111 | var $this = $(this) | ||
112 | , data = $this.data('popover') | ||
113 | , options = typeof option == 'object' && option | ||
114 | if (!data) $this.data('popover', (data = new Popover(this, options))) | ||
115 | if (typeof option == 'string') data[option]() | ||
116 | }) | ||
117 | } | ||
118 | |||
119 | $.fn.popover.Constructor = Popover | ||
120 | |||
121 | $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, { | ||
122 | placement: 'right' | ||
123 | , trigger: 'click' | ||
124 | , content: '' | ||
125 | , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"></div></div></div>' | ||
126 | }) | ||
127 | |||
128 | |||
129 | /* POPOVER NO CONFLICT | ||
130 | * =================== */ | ||
131 | |||
132 | $.fn.popover.noConflict = function () { | ||
133 | $.fn.popover = old | ||
134 | return this | ||
135 | } | ||
136 | |||
137 | }(window.jQuery); \ No newline at end of file | ||