Index: new-options.js |
=================================================================== |
--- a/new-options.js |
+++ b/new-options.js |
@@ -677,6 +677,23 @@ |
url: findParentData(element, "access", false) |
}); |
break; |
+ case "validate-import-subscription": |
+ let form = findParentData(element, "validation", true); |
+ if (!form) |
+ return; |
+ |
+ if (form.checkValidity()) |
+ { |
+ addEnableSubscription(E("import-list-url").value, |
ire
2017/09/22 08:28:53
NIT: I'm getting an eslint error here: "no-trailin
saroyanm
2017/09/22 09:46:58
Done.
|
+ E("import-list-title").value); |
+ form.reset(); |
+ closeDialog(); |
+ } |
+ else |
+ { |
+ form.querySelector(":invalid").focus(); |
+ } |
+ break; |
} |
} |