diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-03-27 19:29:58 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-03-27 19:29:58 -0400 |
commit | d1f2e681331ba3b85bf3a1c5d8b8f35fc5a43a72 (patch) | |
tree | 3c25592af6d76a97aa784870e19543bef1e24c5b | |
parent | 07eae0ce4d927851a839cf50d5cb9b7a06b979a2 (diff) | |
parent | 959d9eda2304df317719ff9768cb555210c98ad0 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
-rw-r--r-- | js/util.js | 2 | ||||
-rw-r--r-- | lib/messageform.php | 10 | ||||
-rw-r--r-- | lib/noticeform.php | 9 | ||||
-rw-r--r-- | theme/base/css/display.css | 51 | ||||
-rw-r--r-- | theme/base/css/ie6.css | 3 | ||||
-rw-r--r-- | theme/base/images/icons/icon_processing.gif | bin | 0 -> 673 bytes | |||
-rw-r--r-- | theme/default/css/display.css | 5 | ||||
-rw-r--r-- | theme/identica/css/display.css | 6 |
8 files changed, 24 insertions, 62 deletions
diff --git a/js/util.js b/js/util.js index 3ad038612..81139744f 100644 --- a/js/util.js +++ b/js/util.js @@ -161,6 +161,7 @@ $(document).ready(function(){ $("#form_notice").addClass("warning"); return false; } + $("#form_notice").addClass("processing"); $("#notice_action-submit").attr("disabled", "disabled"); $("#notice_action-submit").addClass("disabled"); return true; @@ -179,6 +180,7 @@ $(document).ready(function(){ NoticeHover(); NoticeReply(); } + $("#form_notice").removeClass("processing"); $("#notice_action-submit").removeAttr("disabled"); $("#notice_action-submit").removeClass("disabled"); } diff --git a/lib/messageform.php b/lib/messageform.php index f41508305..b8878ec1f 100644 --- a/lib/messageform.php +++ b/lib/messageform.php @@ -132,20 +132,14 @@ class MessageForm extends Form $mutual_users->free(); unset($mutual_users); - $this->out->elementStart('ul', 'form_data'); - $this->out->elementStart('li', array('id' => 'notice_to')); $this->out->dropdown('to', _('To'), $mutual, null, false, ($this->to) ? $this->to->id : null); - $this->out->elementEnd('li'); - $this->out->elementStart('li', array('id' => 'notice_text')); $this->out->element('textarea', array('id' => 'notice_data-text', 'cols' => 35, 'rows' => 4, 'name' => 'content'), ($this->content) ? $this->content : ''); - $this->out->elementEnd('li'); - $this->out->elementEnd('ul'); } /** @@ -156,14 +150,10 @@ class MessageForm extends Form function formActions() { - $this->out->elementStart('ul', 'form_actions'); - $this->out->elementStart('li', array('id' => 'notice_submit')); $this->out->element('input', array('id' => 'notice_action-submit', 'class' => 'submit', 'name' => 'message_send', 'type' => 'submit', 'value' => _('Send'))); - $this->out->elementEnd('li'); - $this->out->elementEnd('ul'); } } diff --git a/lib/noticeform.php b/lib/noticeform.php index 0c991c969..606b5d028 100644 --- a/lib/noticeform.php +++ b/lib/noticeform.php @@ -134,9 +134,6 @@ class NoticeForm extends Form function formData() { - - $this->out->elementStart('ul', 'form_data'); - $this->out->elementStart('li', array('id' => 'notice_text')); $this->out->element('label', array('for' => 'notice_data-text'), sprintf(_('What\'s up, %s?'), $this->user->nickname)); // XXX: vary by defined max size @@ -145,8 +142,6 @@ class NoticeForm extends Form 'rows' => 4, 'name' => 'status_textarea'), ($this->content) ? $this->content : ''); - $this->out->elementEnd('li'); - $this->out->elementEnd('ul'); $this->out->elementStart('dl', 'form_note'); $this->out->element('dt', null, _('Available characters')); @@ -168,14 +163,10 @@ class NoticeForm extends Form function formActions() { - $this->out->elementStart('ul', 'form_actions'); - $this->out->elementStart('li', array('id' => 'notice_submit')); $this->out->element('input', array('id' => 'notice_action-submit', 'class' => 'submit', 'name' => 'status_submit', 'type' => 'submit', 'value' => _('Send'))); - $this->out->elementEnd('li'); - $this->out->elementEnd('ul'); } } diff --git a/theme/base/css/display.css b/theme/base/css/display.css index a10ec0223..90cd00d55 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -421,6 +421,7 @@ padding:0; display:none; } #form_notice textarea { +float:left; border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px; @@ -431,30 +432,19 @@ padding:7px 7px 16px 7px; } #form_notice label { display:block; +float:left; font-size:1.3em; margin-bottom:7px; } -#form_notice .form_data li { -float:left; -} - -#form_notice #notice_attach_file label, #form_notice #notice_submit label { display:none; } - -#form_notice #notice_attachment { -margin-top:25px; -margin-left:4px; -} - #form_notice .form_note { position:absolute; top:99px; right:98px; z-index:9; } - #form_notice .form_note dt { font-weight:bold; display:none; @@ -464,42 +454,19 @@ font-weight:bold; line-height:1.15; padding:1px 2px; } - -#form_notice #notice_data-attach_view { -position:absolute; -top:25px; -right:30px; -margin-left:4px; -padding:0; -width:16px; -height:16px; -border:0; -text-indent:-9999px; -} -#form_notice .form_actions { +#form_notice #notice_action-submit { +width:60px; +padding:8px; position:absolute; bottom:0; right:0; } -#form_notice .form_actions input.submit { -width:60px; -padding:8px; -} - -#form_notice li { -margin-bottom:0; -} - -#form_notice #notice_to { -margin-bottom:7px; -} - -#notice_to label { -float:left; -margin-right:18px; +#form_notice label[for=to] { margin-top:11px; } -#notice_to select { +#form_notice select[id=to] { +margin-bottom:7px; +margin-left:18px; float:left; } /*end FORM NOTICE*/ diff --git a/theme/base/css/ie6.css b/theme/base/css/ie6.css index 10b31cbcb..fa6ec92d2 100644 --- a/theme/base/css/ie6.css +++ b/theme/base/css/ie6.css @@ -9,3 +9,6 @@ margin-left:0; .entity_profile .entity_depiction { margin-bottom:123px; } +.notice div.entry-content { +width:63%; +} diff --git a/theme/base/images/icons/icon_processing.gif b/theme/base/images/icons/icon_processing.gif Binary files differnew file mode 100644 index 000000000..d0bce1542 --- /dev/null +++ b/theme/base/images/icons/icon_processing.gif diff --git a/theme/default/css/display.css b/theme/default/css/display.css index 85b5aa13e..bb0b84a67 100644 --- a/theme/default/css/display.css +++ b/theme/default/css/display.css @@ -94,6 +94,11 @@ color:#333; #form_notice.warning #notice_text-count { color:#000; } +#form_notice.processing #notice_action-submit { +background:#fff url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%; +cursor:wait; +text-indent:-9999px; +} #nav_register a { diff --git a/theme/identica/css/display.css b/theme/identica/css/display.css index 576a2e14b..69be11623 100644 --- a/theme/identica/css/display.css +++ b/theme/identica/css/display.css @@ -94,7 +94,11 @@ color:#333; #form_notice.warning #notice_text-count { color:#000; } - +#form_notice.processing #notice_action-submit { +background:#fff url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%; +cursor:wait; +text-indent:-9999px; +} #nav_register a { text-decoration:none; |