Przeglądaj źródła

added novalidate option to dialog ok close

tags/0.1.13
Robin Thoni 8 lat temu
rodzic
commit
dfb0cd99e1
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 1
    1
      dist/luticate-utils.min.js
  2. 3
    1
      src/directives/dialogokcancel.js

+ 1
- 1
dist/luticate-utils.min.js
Plik diff jest za duży
Wyświetl plik


+ 3
- 1
src/directives/dialogokcancel.js Wyświetl plik

@@ -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">' +

Ładowanie…
Anuluj
Zapisz