Browse Source

publishRule and displayRule now work with consolidated text input

Nathan Schneider 4 years ago
parent
commit
88040c0f1b
2 changed files with 7 additions and 4 deletions
  1. 4 3
      _layouts/rule.html
  2. 3 1
      _sass/communityrule.scss

+ 4 - 3
_layouts/rule.html

@@ -478,6 +478,7 @@ https://github.com/Bernardo-Castilho/dragdroptouch -->
       for (var i = 0; i < fields.length; i++) {
           var key = fields[i].id;
           var value = "";
+          // including input fields
           if (fields[i].nodeName == "INPUT") { // for <input>
               value = fields[i].value.replace(/(<([^>]+)>)/ig,"");
           } else { // for other fields
@@ -668,9 +669,9 @@ https://github.com/Bernardo-Castilho/dragdroptouch -->
   </div>
   <!-- END RuleBuilder -->
 
-  <div id="rulewriter">
-    <span class="prompt">What else?</span>
-    <p id="rulewriter-field" contenteditable="true" class="editable output">Need to change DisplayRule and PublishRule</p>
+  <div id="rulewriter-box">
+    <span class="prompt"></span>
+    <p id="rulewriter" contenteditable="true" class="editable output"></p>
   </div>
   
   <div id="authorship" class="linkbox">

+ 3 - 1
_sass/communityrule.scss

@@ -239,8 +239,10 @@ Enabling users to add links*/
 #structure {
     font-size: 1.3em;
 }
+#rulewriter-box {
+    margin:50px 0 50px 0;
+}
 #rulewriter {
-    margin: 50px 0 50px 0;
 }
 #editToggle {
     float: right;