Skip to content

Commit

Permalink
put back removed ng-href into dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jseppi committed Oct 27, 2014
1 parent c97b0dc commit 6c41c92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion angular-dropdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ dd.directive('dropdownMenu', ['$parse', '$compile', 'DropdownService', '$window'
$scope.labelField = $attrs.dropdownItemLabel || 'text';

// Does not register touchstart events outside of directive scope.
var $clickEvent = ('click'||'touchstart'in $window);
var $clickEvent = ('click'||'touchstart' in $window);
var $template = angular.element([
'<ul class="dropdown">',
'<li ng-repeat="item in dropdownMenu"',
Expand Down Expand Up @@ -172,6 +172,7 @@ dd.directive('dropdownMenuItem', [
'<li ng-class="{divider: dropdownMenuItem.divider}">',
'<a href="" class="dropdown-item"',
' ng-if="!dropdownMenuItem.divider"',
' ng-href="{{dropdownMenuItem.href}}"',
' ng-click="selectItem()">',
'{{dropdownMenuItem[dropdownItemLabel]}}',
'</a>',
Expand Down
3 changes: 2 additions & 1 deletion dist/angular-dropdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ dd.directive('dropdownMenu', ['$parse', '$compile', 'DropdownService', '$window'
$scope.labelField = $attrs.dropdownItemLabel || 'text';

// Does not register touchstart events outside of directive scope.
var $clickEvent = ('click'||'touchstart'in $window);
var $clickEvent = ('click'||'touchstart' in $window);
var $template = angular.element([
'<ul class="dropdown">',
'<li ng-repeat="item in dropdownMenu"',
Expand Down Expand Up @@ -172,6 +172,7 @@ dd.directive('dropdownMenuItem', [
'<li ng-class="{divider: dropdownMenuItem.divider}">',
'<a href="" class="dropdown-item"',
' ng-if="!dropdownMenuItem.divider"',
' ng-href="{{dropdownMenuItem.href}}"',
' ng-click="selectItem()">',
'{{dropdownMenuItem[dropdownItemLabel]}}',
'</a>',
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-dropdowns.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c41c92

Please sign in to comment.