aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-11-16 11:41:39 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-11-16 11:41:39 +0100
commitc7f701c1e71caa416217b5438274785f3ab0c2af (patch)
tree43de5eb85dfaa8d0e928001c960d6fb257e24b93 /phpBB/adm/style
parentc27e8f0dd35eeb3400cca83aeef3c3d3432280f7 (diff)
downloadforums-c7f701c1e71caa416217b5438274785f3ab0c2af.tar
forums-c7f701c1e71caa416217b5438274785f3ab0c2af.tar.gz
forums-c7f701c1e71caa416217b5438274785f3ab0c2af.tar.bz2
forums-c7f701c1e71caa416217b5438274785f3ab0c2af.tar.xz
forums-c7f701c1e71caa416217b5438274785f3ab0c2af.zip
[ticket/11209] Clone disable moving images to allow multiple per page
The disable images need to be clone rather then moved, in order to allow multiple disable images per page. We do not have such a case at the moment but it will be required for the new teampage/legend ACP section. PHPBB3-11209
Diffstat (limited to 'phpBB/adm/style')
-rw-r--r--phpBB/adm/style/ajax.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/adm/style/ajax.js b/phpBB/adm/style/ajax.js
index a3a77df89b..3ccb368665 100644
--- a/phpBB/adm/style/ajax.js
+++ b/phpBB/adm/style/ajax.js
@@ -36,7 +36,7 @@ phpbb.add_ajax_callback('row_down', function() {
overlay: false
});
- tr_swap.find('.up').html(img_templates.up_disabled);
+ tr_swap.find('.up').html(img_templates.up_disabled.clone());
}
tr.insertAfter(tr_swap);
@@ -48,7 +48,7 @@ phpbb.add_ajax_callback('row_down', function() {
*/
if (tr.is(':last-child'))
{
- tr.find('.down').html(img_templates.down_disabled);
+ tr.find('.down').html(img_templates.down_disabled.clone());
var down_img = img_templates.down.clone().attr('href', tr_swap.attr('data-down'));
tr_swap.find('.down').html(down_img);
@@ -82,7 +82,7 @@ phpbb.add_ajax_callback('row_up', function() {
overlay: false
});
- tr_swap.find('.down').html(img_templates.down_disabled);
+ tr_swap.find('.down').html(img_templates.down_disabled.clone());
}
tr.insertBefore(tr_swap);
@@ -94,7 +94,7 @@ phpbb.add_ajax_callback('row_up', function() {
*/
if (tr.is(':first-child'))
{
- tr.find('.up').html(img_templates.up_disabled);
+ tr.find('.up').html(img_templates.up_disabled.clone());
var up_img = img_templates.up.clone().attr('href', tr_swap.attr('data-up'));
tr_swap.find('.up').html(up_img);