Changeset 5334 in subversion


Ignore:
Timestamp:
Oct 12, 2011 5:47:15 AM (20 months ago)
Author:
alec
Message:
  • Use smaller action/rule buttons, create separate dir for images
Location:
trunk/plugins/managesieve
Files:
5 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/managesieve/Changelog

    r5300 r5334  
    1010- Improved script parser, added support for include and variables extensions 
    1111- Added Kolab's KEP:14 support (http://wiki.kolab.org/User:Greve/Drafts/KEP:14) 
     12- Use smaller action/rule buttons 
    1213 
    1314* version 4.3 [2011-07-28] 
  • trunk/plugins/managesieve/managesieve.js

    r5300 r5334  
    329329rcube_webmail.prototype.managesieve_ruledel = function(id) 
    330330{ 
     331  if ($('#ruledel'+id).hasClass('disabled')) 
     332    return; 
     333 
    331334  if (confirm(this.get_label('managesieve.ruledeleteconfirm'))) { 
    332335    var row = document.getElementById('rulerow'+id); 
     
    359362rcube_webmail.prototype.managesieve_actiondel = function(id) 
    360363{ 
     364  if ($('#actiondel'+id).hasClass('disabled')) 
     365    return; 
     366 
    361367  if (confirm(this.get_label('managesieve.actiondeleteconfirm'))) { 
    362368    var row = document.getElementById('actionrow'+id); 
     
    401407    if (i>0 || buttons.length>1) { 
    402408      $(button).removeClass('disabled'); 
    403       button.removeAttribute('disabled'); 
    404409    } 
    405410    else { 
    406411      $(button).addClass('disabled'); 
    407       button.setAttribute('disabled', true); 
    408412    } 
    409413  } 
  • trunk/plugins/managesieve/managesieve.php

    r5332 r5334  
    11721172        // add/del buttons 
    11731173        $out .= '<td class="rowbuttons">'; 
    1174         $out .= '<input type="button" id="ruleadd' . $id .'" value="'. Q($this->gettext('add')). '" 
    1175             onclick="rcmail.managesieve_ruleadd(' . $id .')" class="button" /> '; 
    1176         $out .= '<input type="button" id="ruledel' . $id .'" value="'. Q($this->gettext('del')). '" 
    1177             onclick="rcmail.managesieve_ruledel(' . $id .')" class="button' . ($rows_num<2 ? ' disabled' : '') .'"' 
    1178             . ($rows_num<2 ? ' disabled="disabled"' : '') .' />'; 
     1174        $out .= '<a href="#" id="ruleadd' . $id .'" title="'. Q($this->gettext('add')). '" 
     1175            onclick="rcmail.managesieve_ruleadd(' . $id .')" class="button add"></a>'; 
     1176        $out .= '<a href="#" id="ruledel' . $id .'" title="'. Q($this->gettext('del')). '" 
     1177            onclick="rcmail.managesieve_ruledel(' . $id .')" class="button del' . ($rows_num<2 ? ' disabled' : '') .'"></a>'; 
    11791178        $out .= '</td></tr></table>'; 
    11801179 
     
    12971296        // add/del buttons 
    12981297        $out .= '<td class="rowbuttons">'; 
    1299         $out .= '<input type="button" id="actionadd' . $id .'" value="'. Q($this->gettext('add')). '" 
    1300             onclick="rcmail.managesieve_actionadd(' . $id .')" class="button" /> '; 
    1301         $out .= '<input type="button" id="actiondel' . $id .'" value="'. Q($this->gettext('del')). '" 
    1302             onclick="rcmail.managesieve_actiondel(' . $id .')" class="button' . ($rows_num<2 ? ' disabled' : '') .'"' 
    1303             . ($rows_num<2 ? ' disabled="disabled"' : '') .' />'; 
     1298        $out .= '<a href="#" id="actionadd' . $id .'" title="'. Q($this->gettext('add')). '" 
     1299            onclick="rcmail.managesieve_actionadd(' . $id .')" class="button add"></a>'; 
     1300        $out .= '<a href="#" id="actiondel' . $id .'" title="'. Q($this->gettext('del')). '" 
     1301            onclick="rcmail.managesieve_actiondel(' . $id .')" class="button del' . ($rows_num<2 ? ' disabled' : '') .'"></a>'; 
    13041302        $out .= '</td>'; 
    13051303 
  • trunk/plugins/managesieve/skins/default/managesieve.css

    r5300 r5334  
    6262  margin-right: 3px; 
    6363  overflow: hidden; 
    64   background: url(managesieve_toolbar.png) 0 0 no-repeat transparent; 
     64  background: url(images/toolbar.png) 0 0 no-repeat transparent; 
    6565  opacity: 0.99; /* this is needed to make buttons appear correctly in Chrome */ 
    6666} 
     
    294294} 
    295295 
     296a.button.add 
     297{ 
     298  background: url(images/add.png) no-repeat; 
     299  width: 30px; 
     300  height: 20px; 
     301  margin-right: 4px;  
     302  display: inline-block; 
     303} 
     304 
     305a.button.del 
     306{ 
     307  background: url(images/del.png) no-repeat; 
     308  width: 30px; 
     309  height: 20px; 
     310  display: inline-block; 
     311} 
     312 
     313a.button.disabled 
     314{ 
     315  opacity: 0.35; 
     316  filter: alpha(opacity=35); 
     317  cursor: default; 
     318} 
     319 
    296320/* fixes for popup window */ 
    297321 
  • trunk/plugins/managesieve/skins/default/managesieve_mail.css

    r5155 r5334  
    11#messagemenu li a.filterlink { 
    2   background-image: url(filter.png); 
     2  background-image: url(images/filter.png); 
    33  background-position: 7px 0; 
    44} 
Note: See TracChangeset for help on using the changeset viewer.