Ver código fonte

fixed dropdown disabled

tags/0.1.0
Robin Thoni 9 anos atrás
pai
commit
7de854f755
1 arquivos alterados com 6 adições e 6 exclusões
  1. 6
    6
      src/lupermissionsedit.js

+ 6
- 6
src/lupermissionsedit.js Ver arquivo

@@ -116,9 +116,9 @@ angular.module('luticateUtils').run(['$templateCache', function($templateCache)
116 116
 '    <label class="col-sm-6 control-label">{{ permission.Name }}</label>' +
117 117
 '<div class="col-sm-6">' +
118 118
 '    <div class="btn-group">' +
119
-'    <a class="btn btn-default dropdown-toggle btn-select" data-toggle="dropdown" href="" lu-enable-permission="{{ luModelOptions.permissions.edit }}">' +
119
+'    <button class="btn btn-default dropdown-toggle btn-select" data-toggle="dropdown" href="" lu-enable-permission="{{ luModelOptions.permissions.edit }}">' +
120 120
 '    {{ permission.Value ? \'Allow\' : \'Disallow\' }} <span class="caret"></span>' +
121
-'    </a>' +
121
+'    </button>' +
122 122
 '    <ul class="dropdown-menu">' +
123 123
 '    <li><a href="" ng-click="editPermission(permission, false)">Disallow</a></li>' +
124 124
 '<li><a href="" ng-click="editPermission(permission, true)">Allow</a></li>' +
@@ -135,9 +135,9 @@ angular.module('luticateUtils').run(['$templateCache', function($templateCache)
135 135
 '    <div class="clearfix"></div>' +
136 136
 '    <div class="col-sm-12" lu-busy="permission_add" lu-show-permission="{{ luModelOptions.permissions.add }}">' +
137 137
 '    <div class="btn-group">' +
138
-'    <a class="btn btn-default dropdown-toggle btn-select" data-toggle="dropdown" href="">' +
138
+'    <button class="btn btn-default dropdown-toggle btn-select" data-toggle="dropdown" href="">' +
139 139
 '    {{ tmpPermission.Name }} <span class="caret"></span>' +
140
-'    </a>' +
140
+'    </button>' +
141 141
 '    <ul class="dropdown-menu">' +
142 142
 '    <li ng-repeat="permission in allPermissionsCleared">' +
143 143
 '    <a href="" ng-click="tmpPermission.Name = permission.Name">{{ permission.Name}}</a>' +
@@ -145,9 +145,9 @@ angular.module('luticateUtils').run(['$templateCache', function($templateCache)
145 145
 '</ul>' +
146 146
 '</div>' +
147 147
 '<div class="btn-group">' +
148
-'    <a class="btn btn-default dropdown-toggle btn-select" data-toggle="dropdown" href="">' +
148
+'    <button class="btn btn-default dropdown-toggle btn-select" data-toggle="dropdown" href="">' +
149 149
 '    {{ tmpPermission.Value ? \'Allow\' : \'Disallow\' }} <span class="caret"></span>' +
150
-'    </a>' +
150
+'    </button>' +
151 151
 '    <ul class="dropdown-menu">' +
152 152
 '    <li><a href="" ng-click="tmpPermission.Value = false">Disallow</a></li>' +
153 153
 '<li><a href="" ng-click="tmpPermission.Value = true">Allow</a></li>' +

Carregando…
Cancelar
Salvar