Skip to content

Commit

Permalink
fix(tooltip): use correct prefix for -template
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisirhc authored and wesleycho committed Apr 7, 2015
1 parent 4bfae22 commit 9ca9d7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/popover/docs/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h4>Dynamic</h4>
</div>
<button popover="{{dynamicPopover.content}}" popover-title="{{dynamicPopover.title}}" class="btn btn-default">Dynamic Popover</button>

<button popover-template="{{dynamicPopover.templateUrl}}" popover-template-title="{{dynamicPopover.title}}" class="btn btn-default">Popover With Template</button>
<button popover-template="{{dynamicPopover.templateUrl}}" popover-title="{{dynamicPopover.title}}" class="btn btn-default">Popover With Template</button>

<script type="text/ng-template" id="myPopoverTemplate.html">
<div>{{dynamicPopover.content}}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/popover/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ angular.module( 'ui.bootstrap.popover', [ 'ui.bootstrap.tooltip' ] )
})

.directive( 'popoverTemplate', [ '$tooltip', function ( $tooltip ) {
return $tooltip( 'popoverTemplate', 'popoverTemplate', 'click' );
return $tooltip( 'popoverTemplate', 'popover', 'click' );
}])

.directive( 'popoverPopup', function () {
Expand Down
2 changes: 1 addition & 1 deletion src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function ($animate , $sce , $compile , $templateRequest) {
})

.directive( 'tooltipTemplate', [ '$tooltip', function ( $tooltip ) {
return $tooltip( 'tooltipTemplate', 'tooltipTemplate', 'mouseenter' );
return $tooltip( 'tooltipTemplate', 'tooltip', 'mouseenter' );
}])

/*
Expand Down

0 comments on commit 9ca9d7f

Please sign in to comment.