fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-10-31 01:44 pm

[dw-free] Revamp /update

[commit: http://hg.dwscoalition.org/dw-free/rev/160282d42b25]

http://bugs.dwscoalition.org/show_bug.cgi?id=2524

Tweak header styling, so that headers aren't hidden after saving, and
headers of inactive components aren't shown after saving.

Patch by [personal profile] fu.

Files modified:
  • htdocs/js/jquery.postoptions.js
  • htdocs/stc/jquery.postoptions.css
--------------------------------------------------------------------------------
diff -r f2d163239b4d -r 160282d42b25 htdocs/js/jquery.postoptions.js
--- a/htdocs/js/jquery.postoptions.js	Mon Oct 31 21:23:11 2011 +0800
+++ b/htdocs/js/jquery.postoptions.js	Mon Oct 31 21:45:41 2011 +0800
@@ -99,7 +99,7 @@
         $(".column").sortable( "disable" ).enableSelection();
     $(document.body).removeClass("screen-customize-mode");
 
-    $("#post_entry").addClass("minimal");
+    $("#post_entry").toggleClass("midimal");
     $("#post-options").slideUp();
 }
 
@@ -108,7 +108,7 @@
         $(".column").sortable( "enable" ).disableSelection();
     $(document.body).addClass("screen-customize-mode");
 
-    $("#post_entry").removeClass("minimal");
+    $("#post_entry").toggleClass("midimal");
 }
 
 });
diff -r f2d163239b4d -r 160282d42b25 htdocs/stc/jquery.postoptions.css
--- a/htdocs/stc/jquery.postoptions.css	Mon Oct 31 21:23:11 2011 +0800
+++ b/htdocs/stc/jquery.postoptions.css	Mon Oct 31 21:45:41 2011 +0800
@@ -24,7 +24,7 @@
     position: relative;
 }
 
-#post_entry .ui-sortable .component {
+.ui-sortable .component {
     cursor: move;
     border-left-style: none;
     border-right-style: none;
@@ -34,16 +34,6 @@
     border-style: solid;
 }
 
-.ui-sortable-disabled {
-    border-style: none;
-    min-height: 0;
-    padding: 0 !important;
-}
-
-.ui-sortable-disabled .component {
-    cursor: auto;
-}
-
 .sortable_column_text {
     display: none;
 }
@@ -75,3 +65,17 @@
     display: none;
 }
 
+
+.ui-sortable-disabled {
+    border-style: none;
+    min-height: 0;
+    padding: 0 !important;
+}
+
+.ui-sortable-disabled .component {
+    cursor: auto;
+}
+
+.ui-sortable-disabled .inactive_component {
+    display: none;
+}
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org