Created
April 10, 2014 13:32
-
-
Save jbruni/10382652 to your computer and use it in GitHub Desktop.
bootstrap-bower patches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ui-bootstrap-tpls.js b/ui-bootstrap-tpls.js | |
index cfec6be..b28849b 100644 | |
--- a/ui-bootstrap-tpls.js | |
+++ b/ui-bootstrap-tpls.js | |
@@ -6,7 +6,7 @@ | |
* License: MIT | |
*/ | |
angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdownToggle","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]); | |
-angular.module("ui.bootstrap.tpls", ["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/popup.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]); | |
+angular.module("ui.bootstrap.tpls", ["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/popup.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/popover/popover-template.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]); | |
angular.module('ui.bootstrap.transition', []) | |
/** | |
@@ -2047,7 +2047,8 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
* Returns the actual instance of the $tooltip service. | |
* TODO support multiple triggers | |
*/ | |
- this.$get = [ '$window', '$compile', '$timeout', '$parse', '$document', '$position', '$interpolate', function ( $window, $compile, $timeout, $parse, $document, $position, $interpolate ) { | |
+ this.$get = [ '$window', '$compile', '$timeout', '$parse', '$document', '$position', '$interpolate', '$http', '$templateCache', | |
+ function ( $window, $compile, $timeout, $parse, $document, $position, $interpolate, $http, $templateCache ) { | |
return function $tooltip ( type, prefix, defaultTriggerShow ) { | |
var options = angular.extend( {}, defaultOptions, globalOptions ); | |
@@ -2085,6 +2086,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
'placement="'+startSym+'tt_placement'+endSym+'" '+ | |
'animation="tt_animation" '+ | |
'is-open="tt_isOpen"'+ | |
+ 'template="tt_template"'+ | |
'>'+ | |
'</div>'; | |
@@ -2093,6 +2095,10 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
scope: true, | |
compile: function (tElem, tAttrs) { | |
var tooltipLinker = $compile( template ); | |
+ | |
+ if (tAttrs.popoverTemplate) { | |
+ var httpTemplate = $http.get( tAttrs.popoverTemplate, { cache: $templateCache } ); | |
+ } | |
return function link ( scope, element, attrs ) { | |
var tooltip; | |
@@ -2103,6 +2109,12 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
var hasRegisteredTriggers = false; | |
var hasEnableExp = angular.isDefined(attrs[prefix+'Enable']); | |
+ if (httpTemplate) { | |
+ httpTemplate.then( function(response) { | |
+ scope.tt_template = $compile( response.data.trim() )( scope.$parent ); | |
+ }); | |
+ } | |
+ | |
var positionTooltip = function (){ | |
var position, | |
ttWidth, | |
@@ -2243,7 +2255,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
function createTooltip() { | |
// There can only be one tooltip element per directive shown at once. | |
if (tooltip) { | |
- removeTooltip(); | |
+ return; | |
} | |
tooltip = tooltipLinker(scope, function () {}); | |
@@ -2251,10 +2263,19 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
scope.$digest(); | |
} | |
- function removeTooltip() { | |
+ function removeTooltip( destroy ) { | |
if (tooltip) { | |
- tooltip.remove(); | |
- tooltip = null; | |
+ if (destroy) { | |
+ tooltip.remove(); | |
+ tooltip = null; | |
+ } else { | |
+ // equals to "tooltip.detach();" | |
+ angular.forEach( tooltip, function( e ) { | |
+ if (e.parentNode) { | |
+ e.parentNode.removeChild( e ); | |
+ } | |
+ } ); | |
+ } | |
} | |
} | |
@@ -2327,7 +2348,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
$timeout.cancel( transitionTimeout ); | |
$timeout.cancel( popupTimeout ); | |
unregisterTriggers(); | |
- removeTooltip(); | |
+ removeTooltip( true ); | |
}); | |
}; | |
} | |
@@ -2380,6 +2401,26 @@ angular.module( 'ui.bootstrap.popover', [ 'ui.bootstrap.tooltip' ] ) | |
.directive( 'popover', [ '$tooltip', function ( $tooltip ) { | |
return $tooltip( 'popover', 'popover', 'click' ); | |
+}]) | |
+ | |
+.directive( 'popoverTemplatePopup', [ function () { | |
+ return { | |
+ restrict: 'EA', | |
+ replace: true, | |
+ scope: { title: '@', template: '=', placement: '@', animation: '&', isOpen: '&' }, | |
+ templateUrl: 'template/popover/popover-template.html', | |
+ link: function( scope, iElement ) { | |
+ var unwatch = scope.$watch( 'template', function( template ) { | |
+ if ( !template ) { return; } | |
+ angular.element( iElement[0].querySelector( '.popover-content' ) ).append( template ); | |
+ unwatch(); | |
+ }); | |
+ } | |
+ }; | |
+}]) | |
+ | |
+.directive( 'popoverTemplate', [ '$tooltip', function ( $tooltip ) { | |
+ return $tooltip( 'popoverTemplate', 'popover', 'click' ); | |
}]); | |
angular.module('ui.bootstrap.progressbar', ['ui.bootstrap.transition']) | |
@@ -3578,6 +3619,19 @@ angular.module("template/popover/popover.html", []).run(["$templateCache", funct | |
""); | |
}]); | |
+angular.module("template/popover/popover-template.html", []).run(["$templateCache", function($templateCache) { | |
+ $templateCache.put("template/popover/popover-template.html", | |
+ "<div class=\"popover {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" + | |
+ " <div class=\"arrow\"></div>\n" + | |
+ "\n" + | |
+ " <div class=\"popover-inner\">\n" + | |
+ " <h3 class=\"popover-title\" ng-bind=\"title\" ng-show=\"title\"></h3>\n" + | |
+ " <div class=\"popover-content\"></div>\n" + | |
+ " </div>\n" + | |
+ "</div>\n" + | |
+ ""); | |
+}]); | |
+ | |
angular.module("template/progressbar/bar.html", []).run(["$templateCache", function($templateCache) { | |
$templateCache.put("template/progressbar/bar.html", | |
"<div class=\"progress-bar\" ng-class=\"type && 'progress-bar-' + type\" ng-transclude></div>"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ui-bootstrap-tpls.js b/ui-bootstrap-tpls.js | |
index ff66da3..2a50d75 100644 | |
--- a/ui-bootstrap-tpls.js | |
+++ b/ui-bootstrap-tpls.js | |
@@ -2,11 +2,11 @@ | |
* angular-ui-bootstrap | |
* http://angular-ui.github.io/bootstrap/ | |
- * Version: 0.10.0 - 2014-01-13 | |
+ * Version: 0.10.1 - 2014-01-13 | |
* License: MIT | |
*/ | |
angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdownToggle","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]); | |
-angular.module("ui.bootstrap.tpls", ["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/popup.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]); | |
+angular.module("ui.bootstrap.tpls", ["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/popup.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/popover/popover-template.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]); | |
angular.module('ui.bootstrap.transition', []) | |
/** | |
@@ -2047,7 +2047,8 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
* Returns the actual instance of the $tooltip service. | |
* TODO support multiple triggers | |
*/ | |
- this.$get = [ '$window', '$compile', '$timeout', '$parse', '$document', '$position', '$interpolate', function ( $window, $compile, $timeout, $parse, $document, $position, $interpolate ) { | |
+ this.$get = [ '$window', '$compile', '$timeout', '$parse', '$document', '$position', '$interpolate', '$http', '$templateCache', | |
+ function ( $window, $compile, $timeout, $parse, $document, $position, $interpolate, $http, $templateCache ) { | |
return function $tooltip ( type, prefix, defaultTriggerShow ) { | |
var options = angular.extend( {}, defaultOptions, globalOptions ); | |
@@ -2085,6 +2086,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
'placement="'+startSym+'tt_placement'+endSym+'" '+ | |
'animation="tt_animation" '+ | |
'is-open="tt_isOpen"'+ | |
+ 'template="tt_template"'+ | |
'>'+ | |
'</div>'; | |
@@ -2093,7 +2095,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
scope: true, | |
compile: function (tElem, tAttrs) { | |
var tooltipLinker = $compile( template ); | |
- | |
+ | |
return function link ( scope, element, attrs ) { | |
var tooltip; | |
var transitionTimeout; | |
@@ -2103,6 +2105,13 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
var hasRegisteredTriggers = false; | |
var hasEnableExp = angular.isDefined(attrs[prefix+'Enable']); | |
+ if ( attrs.popoverTemplate ) { | |
+ $http.get( scope.$parent.$eval( attrs.popoverTemplate ), { cache: $templateCache } ) | |
+ .then( function ( response ) { | |
+ scope.tt_template = $compile( response.data.trim() )( scope.$parent ); | |
+ }); | |
+ } | |
+ | |
var positionTooltip = function (){ | |
var position, | |
ttWidth, | |
@@ -2243,7 +2252,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
function createTooltip() { | |
// There can only be one tooltip element per directive shown at once. | |
if (tooltip) { | |
- removeTooltip(); | |
+ return; | |
} | |
tooltip = tooltipLinker(scope, function () {}); | |
@@ -2251,10 +2260,19 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
scope.$digest(); | |
} | |
- function removeTooltip() { | |
+ function removeTooltip( destroy ) { | |
if (tooltip) { | |
- tooltip.remove(); | |
- tooltip = null; | |
+ if (destroy) { | |
+ tooltip.remove(); | |
+ tooltip = null; | |
+ } else { | |
+ // equals to "tooltip.detach();" | |
+ angular.forEach( tooltip, function( e ) { | |
+ if (e.parentNode) { | |
+ e.parentNode.removeChild( e ); | |
+ } | |
+ } ); | |
+ } | |
} | |
} | |
@@ -2327,7 +2345,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
$timeout.cancel( transitionTimeout ); | |
$timeout.cancel( popupTimeout ); | |
unregisterTriggers(); | |
- removeTooltip(); | |
+ removeTooltip( true ); | |
}); | |
}; | |
} | |
@@ -2380,6 +2398,26 @@ angular.module( 'ui.bootstrap.popover', [ 'ui.bootstrap.tooltip' ] ) | |
.directive( 'popover', [ '$tooltip', function ( $tooltip ) { | |
return $tooltip( 'popover', 'popover', 'click' ); | |
+}]) | |
+ | |
+.directive( 'popoverTemplatePopup', [ function () { | |
+ return { | |
+ restrict: 'EA', | |
+ replace: true, | |
+ scope: { title: '@', template: '=', placement: '@', animation: '&', isOpen: '&' }, | |
+ templateUrl: 'template/popover/popover-template.html', | |
+ link: function( scope, iElement ) { | |
+ var unwatch = scope.$watch( 'template', function( template ) { | |
+ if ( !template ) { return; } | |
+ angular.element( iElement[0].querySelector( '.popover-content' ) ).append( template ); | |
+ unwatch(); | |
+ }); | |
+ } | |
+ }; | |
+}]) | |
+ | |
+.directive( 'popoverTemplate', [ '$tooltip', function ( $tooltip ) { | |
+ return $tooltip( 'popoverTemplate', 'popover', 'click' ); | |
}]); | |
angular.module('ui.bootstrap.progressbar', ['ui.bootstrap.transition']) | |
@@ -3578,6 +3616,19 @@ angular.module("template/popover/popover.html", []).run(["$templateCache", funct | |
""); | |
}]); | |
+angular.module("template/popover/popover-template.html", []).run(["$templateCache", function($templateCache) { | |
+ $templateCache.put("template/popover/popover-template.html", | |
+ "<div class=\"popover {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" + | |
+ " <div class=\"arrow\"></div>\n" + | |
+ "\n" + | |
+ " <div class=\"popover-inner\">\n" + | |
+ " <h3 class=\"popover-title\" ng-bind=\"title\" ng-show=\"title\"></h3>\n" + | |
+ " <div class=\"popover-content\"></div>\n" + | |
+ " </div>\n" + | |
+ "</div>\n" + | |
+ ""); | |
+}]); | |
+ | |
angular.module("template/progressbar/bar.html", []).run(["$templateCache", function($templateCache) { | |
$templateCache.put("template/progressbar/bar.html", | |
"<div class=\"progress-bar\" ng-class=\"type && 'progress-bar-' + type\" ng-transclude></div>"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ui-bootstrap-tpls.js b/ui-bootstrap-tpls.js | |
index ff66da3..b42ca50 100644 | |
--- a/ui-bootstrap-tpls.js | |
+++ b/ui-bootstrap-tpls.js | |
@@ -2,11 +2,11 @@ | |
* angular-ui-bootstrap | |
* http://angular-ui.github.io/bootstrap/ | |
- * Version: 0.10.0 - 2014-01-13 | |
+ * Version: 0.10.2 - 2014-01-13 | |
* License: MIT | |
*/ | |
angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdownToggle","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]); | |
-angular.module("ui.bootstrap.tpls", ["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/popup.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]); | |
+angular.module("ui.bootstrap.tpls", ["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/popup.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/popover/popover-template.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]); | |
angular.module('ui.bootstrap.transition', []) | |
/** | |
@@ -2047,7 +2047,8 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
* Returns the actual instance of the $tooltip service. | |
* TODO support multiple triggers | |
*/ | |
- this.$get = [ '$window', '$compile', '$timeout', '$parse', '$document', '$position', '$interpolate', function ( $window, $compile, $timeout, $parse, $document, $position, $interpolate ) { | |
+ this.$get = [ '$window', '$compile', '$timeout', '$parse', '$document', '$position', '$interpolate', '$http', '$templateCache', | |
+ function ( $window, $compile, $timeout, $parse, $document, $position, $interpolate, $http, $templateCache ) { | |
return function $tooltip ( type, prefix, defaultTriggerShow ) { | |
var options = angular.extend( {}, defaultOptions, globalOptions ); | |
@@ -2085,6 +2086,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
'placement="'+startSym+'tt_placement'+endSym+'" '+ | |
'animation="tt_animation" '+ | |
'is-open="tt_isOpen"'+ | |
+ 'template="tt_template"'+ | |
'>'+ | |
'</div>'; | |
@@ -2093,7 +2095,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
scope: true, | |
compile: function (tElem, tAttrs) { | |
var tooltipLinker = $compile( template ); | |
- | |
+ | |
return function link ( scope, element, attrs ) { | |
var tooltip; | |
var transitionTimeout; | |
@@ -2243,7 +2245,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
function createTooltip() { | |
// There can only be one tooltip element per directive shown at once. | |
if (tooltip) { | |
- removeTooltip(); | |
+ return; | |
} | |
tooltip = tooltipLinker(scope, function () {}); | |
@@ -2251,10 +2253,19 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
scope.$digest(); | |
} | |
- function removeTooltip() { | |
+ function removeTooltip( destroy ) { | |
if (tooltip) { | |
- tooltip.remove(); | |
- tooltip = null; | |
+ if (destroy) { | |
+ tooltip.remove(); | |
+ tooltip = null; | |
+ } else { | |
+ // equals to "tooltip.detach();" | |
+ angular.forEach( tooltip, function( e ) { | |
+ if (e.parentNode) { | |
+ e.parentNode.removeChild( e ); | |
+ } | |
+ } ); | |
+ } | |
} | |
} | |
@@ -2282,6 +2293,14 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
scope.tt_popupDelay = ! isNaN(delay) ? delay : options.popupDelay; | |
}); | |
+ attrs.$observe( 'popoverTemplate', function ( val ) { | |
+ if ( !val ) { return; } | |
+ $http.get( val, { cache: $templateCache } ) | |
+ .then( function ( response ) { | |
+ scope.tt_template = $compile( response.data.trim() )( scope.$parent ); | |
+ }); | |
+ }); | |
+ | |
var unregisterTriggers = function() { | |
if (hasRegisteredTriggers) { | |
element.unbind( triggers.show, showTooltipBind ); | |
@@ -2327,7 +2346,7 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap | |
$timeout.cancel( transitionTimeout ); | |
$timeout.cancel( popupTimeout ); | |
unregisterTriggers(); | |
- removeTooltip(); | |
+ removeTooltip( true ); | |
}); | |
}; | |
} | |
@@ -2380,6 +2399,27 @@ angular.module( 'ui.bootstrap.popover', [ 'ui.bootstrap.tooltip' ] ) | |
.directive( 'popover', [ '$tooltip', function ( $tooltip ) { | |
return $tooltip( 'popover', 'popover', 'click' ); | |
+}]) | |
+ | |
+.directive( 'popoverTemplatePopup', [ function () { | |
+ return { | |
+ restrict: 'EA', | |
+ replace: true, | |
+ scope: { title: '@', template: '=', placement: '@', animation: '&', isOpen: '&' }, | |
+ templateUrl: 'template/popover/popover-template.html', | |
+ link: function( scope, iElement ) { | |
+ var contentEl = angular.element( iElement[0].querySelector( '.popover-content' ) ); | |
+ scope.$watch( 'template', function( template ) { | |
+ if ( !template ) { return; } | |
+ contentEl.children().remove(); | |
+ contentEl.append( template ); | |
+ }); | |
+ } | |
+ }; | |
+}]) | |
+ | |
+.directive( 'popoverTemplate', [ '$tooltip', function ( $tooltip ) { | |
+ return $tooltip( 'popoverTemplate', 'popover', 'click' ); | |
}]); | |
angular.module('ui.bootstrap.progressbar', ['ui.bootstrap.transition']) | |
@@ -3578,6 +3618,19 @@ angular.module("template/popover/popover.html", []).run(["$templateCache", funct | |
""); | |
}]); | |
+angular.module("template/popover/popover-template.html", []).run(["$templateCache", function($templateCache) { | |
+ $templateCache.put("template/popover/popover-template.html", | |
+ "<div class=\"popover {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" + | |
+ " <div class=\"arrow\"></div>\n" + | |
+ "\n" + | |
+ " <div class=\"popover-inner\">\n" + | |
+ " <h3 class=\"popover-title\" ng-bind=\"title\" ng-show=\"title\"></h3>\n" + | |
+ " <div class=\"popover-content\"></div>\n" + | |
+ " </div>\n" + | |
+ "</div>\n" + | |
+ ""); | |
+}]); | |
+ | |
angular.module("template/progressbar/bar.html", []).run(["$templateCache", function($templateCache) { | |
$templateCache.put("template/progressbar/bar.html", | |
"<div class=\"progress-bar\" ng-class=\"type && 'progress-bar-' + type\" ng-transclude></div>"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment