From 5f681c4b200871894528bcea154582793f77421d Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 8 Apr 2010 09:05:11 +0000 Subject: [PATCH] Updated images git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17541 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/sieve/class_sieveManagement.inc | 10 ++--- .../mail/sieve/templates/object_container.tpl | 41 ++++++++----------- 2 files changed, 23 insertions(+), 28 deletions(-) diff --git a/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc b/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc index 0bedbf43a..c4455b2a8 100644 --- a/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc +++ b/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc @@ -920,7 +920,7 @@ class sieveManagement extends plugin $once = TRUE; foreach($_POST as $name => $value){ foreach($data as $key => $obj){ - if(isset($obj->object_id) && preg_match("/^Add_Object_Top_".$obj->object_id."_/",$name) && $once){ + if(isset($obj->object_id) && preg_match("/^Add_Object_Top_".$obj->object_id."/",$name) && $once){ $once = FALSE; $this->add_element_type = $_POST['element_type_'.$obj->object_id]; $this->add_new_element = FALSE; @@ -928,7 +928,7 @@ class sieveManagement extends plugin $this->add_above_below = "above"; $this->add_new_element_to_current_script($this->add_element_type,$this->add_new_id,$this->add_above_below); } - if(isset($obj->object_id) && preg_match("/^Add_Object_Bottom_".$obj->object_id."_/",$name) && $once){ + if(isset($obj->object_id) && preg_match("/^Add_Object_Bottom_".$obj->object_id."/",$name) && $once){ $once = FALSE; $this->add_element_type = $_POST['element_type_'.$obj->object_id]; $this->add_new_element = FALSE; @@ -937,15 +937,15 @@ class sieveManagement extends plugin $this->add_new_element_to_current_script($this->add_element_type,$this->add_new_id,$this->add_above_below); } - if(isset($obj->object_id) && preg_match("/^Remove_Object_".$obj->object_id."_/",$name) && $once){ + if(isset($obj->object_id) && preg_match("/^Remove_Object_".$obj->object_id."/",$name) && $once){ $once = FALSE; $this->current_handler->tree_->remove_object($key); } - if(isset($obj->object_id) && preg_match("/^Move_Up_Object_".$obj->object_id."_/",$name) && $once){ + if(isset($obj->object_id) && preg_match("/^Move_Up_Object_".$obj->object_id."/",$name) && $once){ $this->current_handler->tree_->move_up_down($key,"up"); $once = FALSE; } - if(isset($obj->object_id) && preg_match("/^Move_Down_Object_".$obj->object_id."_/",$name) && $once){ + if(isset($obj->object_id) && preg_match("/^Move_Down_Object_".$obj->object_id."/",$name) && $once){ $this->current_handler->tree_->move_up_down($key,"down"); $once = FALSE; } diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/object_container.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/object_container.tpl index efe2791b9..098051fca 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/object_container.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/object_container.tpl @@ -3,21 +3,20 @@   - - - {t}Move up{/t} -     - - {t}Move down{/t} -     - - {t}Remove element{/t} -     + + {image path='plugins/mail/images/sieve_move_object_up.png' + action="Move_Up_Object_{$ID}" title="{t}Move object up one position{/t}"} + + {image path='plugins/mail/images/sieve_move_object_down.png' + action="Move_Down_Object_{$ID}" title="{t}Move object down one position{/t}"} + + {image path='images/lists/trash.png' action="Remove_Object_{$ID}" + title="{t}Remove object{/t}"} + + + - @@ -34,20 +33,16 @@ - - - - + {image path="plugins/mail/images/sieve_move_object_up.png[new]" + action="Add_Object_Top_{$ID}" title="{t}Add a new object above this one.{/t}"} + {image path="plugins/mail/images/sieve_move_object_down.png[new]" + action="Add_Object_Bottom_{$ID}" title="{t}Add a new object below this one.{/t}"} - + %%OBJECT_CONTENT%% -- 2.30.2