Mercurial > wikked
comparison static/bootstrap/js/bootstrap-popover.js @ 88:a5a3d454eac9
Updated Bootstrap.
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Fri, 05 Apr 2013 08:08:12 -0700 |
| parents | 130eccd396d8 |
| children |
comparison
equal
deleted
inserted
replaced
| 87:c0cf67362fb1 | 88:a5a3d454eac9 |
|---|---|
| 1 /* =========================================================== | 1 /* =========================================================== |
| 2 * bootstrap-popover.js v2.2.2 | 2 * bootstrap-popover.js v2.3.1 |
| 3 * http://twitter.github.com/bootstrap/javascript.html#popovers | 3 * http://twitter.github.com/bootstrap/javascript.html#popovers |
| 4 * =========================================================== | 4 * =========================================================== |
| 5 * Copyright 2012 Twitter, Inc. | 5 * Copyright 2012 Twitter, Inc. |
| 6 * | 6 * |
| 7 * Licensed under the Apache License, Version 2.0 (the "License"); | 7 * Licensed under the Apache License, Version 2.0 (the "License"); |
| 56 , getContent: function () { | 56 , getContent: function () { |
| 57 var content | 57 var content |
| 58 , $e = this.$element | 58 , $e = this.$element |
| 59 , o = this.options | 59 , o = this.options |
| 60 | 60 |
| 61 content = $e.attr('data-content') | 61 content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content) |
| 62 || (typeof o.content == 'function' ? o.content.call($e[0]) : o.content) | 62 || $e.attr('data-content') |
| 63 | 63 |
| 64 return content | 64 return content |
| 65 } | 65 } |
| 66 | 66 |
| 67 , tip: function () { | 67 , tip: function () { |
| 97 | 97 |
| 98 $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, { | 98 $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, { |
| 99 placement: 'right' | 99 placement: 'right' |
| 100 , trigger: 'click' | 100 , trigger: 'click' |
| 101 , content: '' | 101 , content: '' |
| 102 , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"></div></div></div>' | 102 , template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' |
| 103 }) | 103 }) |
| 104 | 104 |
| 105 | 105 |
| 106 /* POPOVER NO CONFLICT | 106 /* POPOVER NO CONFLICT |
| 107 * =================== */ | 107 * =================== */ |
