Browse Source

added novalidate option to dialog ok close

tags/0.1.13
Robin Thoni 8 years ago
parent
commit
dfb0cd99e1
2 changed files with 4 additions and 2 deletions
  1. 1
    1
      dist/luticate-utils.min.js
  2. 3
    1
      src/directives/dialogokcancel.js

+ 1
- 1
dist/luticate-utils.min.js
File diff suppressed because it is too large
View File


+ 3
- 1
src/directives/dialogokcancel.js View File

@@ -18,6 +18,8 @@
18 18
                         $scope.pending = false;
19 19
                         $scope.submitted = false;
20 20
 
21
+                        $scope.novalidate = attrs.novalidate != undefined ? "" : undefined;
22
+
21 23
                         $scope.__submit = function()
22 24
                         {
23 25
                             $scope.submitted = true;
@@ -70,7 +72,7 @@
70 72
     angular.module("luticateUtils").run(["$templateCache", function($templateCache)
71 73
     {
72 74
         $templateCache.put("/luticateUtils/dialogokcancel-directive.html", '<div class="popin modal-content" xmlns="http://www.w3.org/1999/html">' +
73
-    '<form name="form" ng-submit="__submit()">' +
75
+    '<form name="form" ng-submit="__submit()" ng-attr-novalidate="{{novalidate}}">' +
74 76
     '<div class="modal-header">{{ title }}</div>' +
75 77
     '<div class="modal-body" lu-busy="modal">' +
76 78
     '    <div class="form-group form-horizontal">' +

Loading…
Cancel
Save