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

Loading…
Cancel
Save