Get rid of large blank area when adding non-patch attachment
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Oct 2014 16:01:18 +0000 (16:01 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Oct 2014 16:01:18 +0000 (16:01 +0000)
* js/attachment.js:
* template/en/custom/attachment/patchlegalese.html.tmpl:
- Use 'display: none;' and 'display: table-row;' instead of
  'visibility: collapse;' and 'visibility: visible;' to hide and
  show the text.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174771 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/bugs.webkit.org/js/attachment.js
Websites/bugs.webkit.org/template/en/custom/attachment/patchlegalese.html.tmpl

index 240ac3b..5a541a8 100644 (file)
@@ -54,11 +54,11 @@ function setContentTypeDisabledState(form)
 
 // if WEBKIT_CHANGES
     if (isdisabled) {
-        document.getElementById('legal').style.visibility = "visible";
+        document.getElementById('legal').style.display = "table-row";
         document.getElementById('create').value = "Agree and Submit";
     } else {
         document.getElementById('create').value = "Submit";
-        document.getElementById('legal').style.visibility = "collapse";
+        document.getElementById('legal').style.display = "none";
     }
 // endif WEBKIT_CHANGES
 }
index 7167ba3..0bc8dce 100644 (file)
@@ -24,7 +24,7 @@
 
 [%# if WEBKIT_CHANGES %]
 [% IF (product == "WebKit" || product == "Security") %] 
-    <tr id="legal" style="visibility: collapse;">
+    <tr id="legal" style="display: none;">
       <th>Legal:</th>
       <td>
         <b>WebKit Contribution Terms:</b><br/>