]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moved nudge response from util.php to nudge.php
authorsarven <csarven@plantard.controlezvous.ca>
Thu, 22 Jan 2009 06:33:38 +0000 (06:33 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Thu, 22 Jan 2009 06:33:38 +0000 (06:33 +0000)
Adjusted some CSS

actions/nudge.php
js/util.js
lib/util.php
theme/base/css/display.css
theme/identica/css/display.css

index 456106459457f6ac4dbb3620bc006fc60c8f38d1..ca6fd376123feb36e7cfc89eb2d94eaaecf504bc 100644 (file)
@@ -42,6 +42,7 @@ require_once INSTALLDIR.'/lib/mail.php';
  * @package  Laconica
  * @author   Evan Prodromou <evan@controlyourself.ca>
  * @author   Robin Millette <millette@controlyourself.ca>
+ * @author   Sarven Capadisli <csarven@controlyourself.ca>
  * @license  http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
  * @link     http://laconi.ca/
  */
@@ -93,7 +94,7 @@ class NudgeAction extends Action
             $this->element('title', null, _('Nudge sent'));
             $this->elementEnd('head');
             $this->elementStart('body');
-            common_nudge_response();
+            $this->element('p', array('id' => 'nudge_response'), _('Nudge sent!'));
             $this->elementEnd('body');
             $this->elementEnd('html');
         } else {
index bb68c25879dc4f82b121c032cae9ed12914b4c77..579b4952ae1a7e2e5a3c24c1cb3fbd1d4ac800ac 100644 (file)
@@ -108,16 +108,16 @@ $(document).ready(function(){
        $("form.form_group_join").each(addAjaxHidden);
        $("form.form_group_leave").each(addAjaxHidden);
 
-       $("#nudge").ajaxForm ({ dataType: 'xml',
-                                                       beforeSubmit: function(xml) { $("form#nudge input[type=submit]").attr("disabled", "disabled");
-                                                                                                                 $("form#nudge input[type=submit]").addClass("disabled");
-                                                                                                               },
-                                                       success: function(xml) { $("#nudge").replaceWith(document._importNode($("#nudge_response", xml).get(0),true));
-                                                                                                    $("#nudge input[type=submit]").removeAttr("disabled");
-                                                                                                    $("#nudge input[type=submit]").removeClass("disabled");
-                                                                                                  }
-                                                });
-       $("#nudge").each(addAjaxHidden);
+       $("#form_user_nudge").ajaxForm ({ dataType: 'xml',
+               beforeSubmit: function(xml) { $("#form_user_nudge input[type=submit]").attr("disabled", "disabled");
+                                                                         $("#form_user_nudge input[type=submit]").addClass("disabled");
+                                                                       },
+               success: function(xml) { $("#form_user_nudge").replaceWith(document._importNode($("#nudge_response", xml).get(0),true));
+                                                            $("#form_user_nudge input[type=submit]").removeAttr("disabled");
+                                                            $("#form_user_nudge input[type=submit]").removeClass("disabled");
+                                                          }
+        });
+       $("#form_user_nudge").each(addAjaxHidden);
 
        var Subscribe = { dataType: 'xml',
                                          beforeSubmit: function(formData, jqForm, options) { $(".form_user_subscribe input[type=submit]").attr("disabled", "disabled");
index 4d4a3b20f2debe7c1ac77884808a9d3133afab60..61f5d6c16b836ce75e8f6b1b879a970dfe395dbe 100644 (file)
@@ -1660,11 +1660,6 @@ function common_session_token()
     return $_SESSION['token'];
 }
 
-function common_nudge_response()
-{
-    common_element('p', array('id' => 'nudge_response'), _('Nudge sent!'));
-}
-
 function common_cache_key($extra)
 {
     return 'laconica:' . common_keyize(common_config('site', 'name')) . ':' . $extra;
index 073d2d40a2ca1f49d05efc873b7b3f771e8db148..91789f4f18a16e8d86f68fd14171af1e2fb0b7c1 100644 (file)
@@ -17,8 +17,8 @@ width:1004px;
 width:71.714em;
 }
 h1,h2,h3,h4,h5,h6 {
-       text-transform:uppercase;
-       margin-bottom:7px;
+text-transform:uppercase;
+margin-bottom:7px;
 }
 h1 {
 font-size:1.4em;
@@ -34,8 +34,6 @@ h6 { font-size:0.9em; }
 caption {
 font-weight:bold;
 }
-.opened { display: block !important;}
-.closed { display: none !important;}
 
 legend {
 font-weight:bold; 
@@ -56,6 +54,7 @@ border-radius:4px;
 -moz-border-radius:4px;
 -webkit-border-radius:4px;
 }
+
 input.submit {
 font-weight:bold;
 }
@@ -79,9 +78,6 @@ form label {
 font-weight:bold;
 /*margin:0 0 11px 0;*/
 }
-form ul li input {
-}
-
 input.checkbox {
 position:relative;
 top:2px;
@@ -465,7 +461,7 @@ padding:1px 2px;
 }
 
 #form_notice #notice_data-attach_view {
-/*position:absolute;*/
+position:absolute;
 top:25px;
 right:30px;
 margin-left:4px;
@@ -614,10 +610,10 @@ text-align:left;
 cursor:pointer;
 width:100%;
 }
-.entity_actions a {
+.entity_actions a,
+#entity_nudge p {
 text-decoration:none;
 font-weight:bold;
-width:100%;
 display:block;
 }
 
@@ -626,12 +622,14 @@ display:block;
 .form_user_block input.submit,
 .form_user_unblock input.submit,
 #entity_send-a-message a,
-.form_user_nudge input.submit {
+.form_user_nudge input.submit,
+#entity_nudge p {
 border:0;
 padding-left:20px;
 }
 
-#entity_send-a-message a {
+#entity_send-a-message a,
+#entity_nudge p {
 padding:4px 4px 4px 23px;
 }
 
index c702c77e63ea55eca60aba42f0428ea471ab7e8f..fa395b03b2927589e3f103feb3a8eee8115679e2 100644 (file)
@@ -22,6 +22,7 @@ input, textarea, select {
 border-color:#aaa;
 }
 
+
 input.submit,
 #form_notice.warning #notice_text-count,
 #nav_register a,
@@ -43,7 +44,8 @@ div.notice-options input,
 .form_user_block input.submit,
 .form_user_unblock input.submit,
 #entity_send-a-message a,
-.form_user_nudge input.submit {
+.form_user_nudge input.submit,
+#entity_nudge p {
 color:#002E6E;
 }
 
@@ -135,7 +137,8 @@ background-image:url(../../base/images/icons/icon_vcard.gif);
 #entity_send-a-message a,
 .form_user_nudge input.submit,
 .form_user_block input.submit,
-.form_user_unblock input.submit {
+.form_user_unblock input.submit,
+#entity_nudge p {
 background-position: 0 40%;
 background-repeat: no-repeat;
 background-color:transparent;
@@ -152,6 +155,7 @@ background-color:#97BFD1;
 #entity_send-a-message a {
 background-image:url(../images/icons/twotone/green/quote.gif);
 }
+#entity_nudge p,
 .form_user_nudge input.submit {
 background-image:url(../images/icons/twotone/green/mail.gif);
 }