Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit e1a75b4

Browse files
committed
Fixed issue with click in padding on button template
1 parent 18605a4 commit e1a75b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/angularJsOAuth2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329

330330
definition.link = function(scope, element, attrs) {
331331
function compile() {
332-
var tpl = '<p class="navbar-btn"><a class="{{buttonClass}}"><span href="#" ng-hide="signedIn" ng-click="signIn()" >{{signInText}}</span><span href="#" ng-show="signedIn" ng-click="signOut()">{{signOutText}}</span></a></p>';
332+
var tpl = '<p class="navbar-btn"><a class="{{buttonClass}}" ng-click="signedIn ? signOut() : signIn()"><span href="#" ng-hide="signedIn">{{signInText}}</span><span href="#" ng-show="signedIn">{{signOutText}}</span></a></p>';
333333
if (scope.template) {
334334
$http.get(scope.template, { cache: $templateCache }).success(function(html) {
335335
element.html(html);

0 commit comments

Comments
 (0)