Skip to content

Commit

Permalink
Restricting qr directive to attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sem committed May 8, 2014
1 parent d2666b6 commit bb893b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion html/modals/show-qr.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="text-center showqr">
<qr data="{{vars.address}}" level="L"></qr>
<div qr data="{{vars.address}}" level="L"></div>
<div class="qr-address">{{vars.address}}</div>
</div>
<div class="qractions">
Expand Down
2 changes: 1 addition & 1 deletion js/frontend/directives/qr.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
define(['./module', 'qrcodejs'], function (directives, QRCode) {
directives.directive('qr', ['$window', function($window) {
return {
restrict: 'E',
restrict: 'A',
link: function(scope, element, attrs) {
var qrcode = new QRCode(element[0], {
width : 1000,
Expand Down

0 comments on commit bb893b1

Please sign in to comment.