Relevant former post : https://www.joomlart.com/forums/topic/acm-module-feature-request-order-items/#post-1092820
Hi,
I find a way, may be it’s not the best, but it’s working :
In
mod_ja_acm/admin/tmpl/field-jalist.php
Just add
<span class="btn action btn-up" data-action="up_row" title="Up Row"><i class="icon-arrow-up fa fa-arrow-up"></i></span>
<span class="btn action btn-down" data-action="down_row" title="Down Row"><i class="icon-arrow-down fa fa-arrow-down"></i></span>
behind the delete row button
And in
mod_ja_acm/admin/assets/jalist.js
Add
JAList.prototype.up_row = function (btn) {
var $btn = $(btn),
$row = $btn.parents('tr').first();
$row.prev().before($row);
};
JAList.prototype.down_row = function (btn) {
var $btn = $(btn),
$row = $btn.parents('tr').first();
$row.next().after($row);
};
behind
JAList.prototype.delete_row = function (btn) {
var $btn = $(btn),
$row = $btn.parents('tr').first();
if (!$row.hasClass('first')) {
$row.remove();
}
};
Could you consider to add it in the next releases of JA ACM Module (or find a best way to do it)
Best regards.