소스 검색

Added confirm dialogue to publishRule in rule.html

Nathan Schneider 4 년 전
부모
커밋
48a7f33258
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      _layouts/rule.html

+ 4 - 0
_layouts/rule.html

@@ -208,6 +208,10 @@ layout: default
   // Publishes existing fields to new page, /create/?rule=[ruleID]
   // Opens new page in Display mode
   function publishRule() {
+      // Confirm user knows what they're getting into
+      var r = confirm("Publish to the public Library?");
+      if (r == false) { return; }
+      // Proceed with publication
       var now = new Date();
       // Numerical ID for published Rule
       var timeID = now.getTime();