diff --git a/inc/tpl/config.php b/inc/tpl/config.php index 7c880203..23784167 100644 --- a/inc/tpl/config.php +++ b/inc/tpl/config.php @@ -217,18 +217,6 @@ $allowedExts = SP_Config::getValue('allowed_exts');
');
+ }
},
- 'onRemoveTag' : function(){
+ 'onRemoveTag' : function(){
+ var $tagsbox = $(this).next();
+
+ if ( $tagsbox.find('img:last').attr('alt') != 'warning' ){
+ $tagsbox.find('div:last').prev().append('
');
+ }
+ },
+ onChange : function(){
// Fix tooltip on refresh the tags list
$(this + '[title]').powerTip(powertipOptions);
}
@@ -407,15 +406,25 @@ $allowedExts = SP_Config::getValue('allowed_exts');
// Fix scrolling to bottom
var $tagsbox = $(this).next();
$tagsbox.animate({scrollTop: $tagsbox.height()});
+
+ if ( $tagsbox.find('img:last').attr('alt') != 'warning' ){
+ $tagsbox.find('div:last').prev().append('
');
+ }
},
onRemoveTag : function(){
- // Fix tooltip on refresh the tags list
- $(this + '[title]').powerTip(powertipOptions);
+ var $tagsbox = $(this).next();
+
+ if ( $tagsbox.find('img:last').attr('alt') != 'warning' ){
+ $tagsbox.find('div:last').prev().append('
');
+ }
},
onChange : function(){
var $tagsbox = $(this).next();
last_width = $tagsbox.find("span:last").width() + 10;
- $tagsbox.find(".tag:last").css('width', last_width);
+ $tagsbox.find(".tag:last").css('width', last_width);
+
+ // Fix tooltip on refresh the tags list
+ $(this + '[title]').powerTip(powertipOptions);
}
});
\ No newline at end of file
diff --git a/js/functions.php b/js/functions.php
index df7c760b..5c9ad885 100644
--- a/js/functions.php
+++ b/js/functions.php
@@ -48,8 +48,7 @@ $locale= array(
'Valor no introducido',
'Valor duplicado',
'Opción no seleccionada',
- 'Opción añadida