]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moved initPopupWindow CSS out of JS in Realtime plugin
authorSarven Capadisli <csarven@status.net>
Tue, 24 Nov 2009 13:10:34 +0000 (13:10 +0000)
committerSarven Capadisli <csarven@status.net>
Tue, 24 Nov 2009 13:10:34 +0000 (13:10 +0000)
plugins/Realtime/realtimeupdate.css
plugins/Realtime/realtimeupdate.js

index 0ab5dd32b957c521f80ad8229babc55785b7dc3c..a5728b83dcff727390265359f64bd62333824f4b 100644 (file)
@@ -1,3 +1,32 @@
+.realtime-popup address {
+display:none;
+}
+
+.realtime-popup #content {
+width:93.5%;
+}
+
+.realtime-popup #form_notice {
+margin:18px 0 18px 1.795%;
+width:93%;
+max-width:451px;
+}
+
+.realtime-popup #form_notice label[for=notice_data-text],
+.realtime-popup h1 {
+display:none;
+}
+
+.realtime-popup #form_notice label[for=notice_data-attach],
+.realtime-popup #form_notice #notice_data-attach {
+top:0;
+}
+
+.realtime-popup #form_notice #notice_data-attach {
+left:auto;
+right:0;
+}
+
 #notices_primary {
 position:relative;
 }
index 4dbc80231d9e0d98d06b19a7b23c0d0071c02c78..b3c41456efa2f3d2afe66cf6b572681c92a61c5c 100644 (file)
@@ -276,24 +276,6 @@ RealtimeUpdate = {
 
      initPopupWindow: function()
      {
-         $('address').hide();
-         $('#content').css({'width':'93.5%'});
-
-         $('#form_notice').css({
-            'margin':'18px 0 18px 1.795%',
-            'width':'93%',
-            'max-width':'451px'
-         });
-
-         $('#form_notice label[for=notice_data-text], h1').css({'display': 'none'});
-
-         $('#form_notice label[for="notice_data-attach"], #form_notice #notice_data-attach').css({'top':'0'});
-
-         $('#form_notice #notice_data-attach').css({
-            'left':'auto',
-            'right':'0'
-         });
-
          $('.notices .entry-title a, .notices .entry-content a').bind('click', function() {
             window.open(this.href, '');