Skip to content

Commit

Permalink
Fix orderable multiselect buttons (#3506)
Browse files Browse the repository at this point in the history
* add .vscode to gitignore

* Change Up/Down multiselect labels to titles

Run prettier
  • Loading branch information
aaronlifton committed Apr 7, 2022
1 parent 42d668f commit e5bb7ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.swp
.bundle
.idea/
.vscode/
.rvmrc
.sass-cache
.yardoc
Expand Down
13 changes: 4 additions & 9 deletions src/rails_admin/filtering-multiselect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import jQuery from "jquery";
import "jquery-ui/ui/widget";
import I18n from "./i18n";

(function ($) {
$.widget("ra.filteringMultiselect", {
_cache: {},
Expand Down Expand Up @@ -112,15 +111,11 @@ import I18n from "./i18n";
}
if (this.options.sortable) {
this.up = $(
'<a href="#" class="fas fa-chevron-circle-up ra-multiselect-item-up">' +
this.options.regional.up +
"</a>"
);
'<a href="#" class="fas fa-chevron-circle-up ra-multiselect-item-up"></a>'
).attr("title", this.options.regional.up);
this.down = $(
'<a href="#" class="fas fa-chevron-circle-down ra-multiselect-item-down">' +
this.options.regional.down +
"</a>"
);
'<a href="#" class="fas fa-chevron-circle-down ra-multiselect-item-down"></a>'
).attr("title", this.options.regional.down);
columns.center.append(this.up).append(this.down);
}

Expand Down

0 comments on commit e5bb7ba

Please sign in to comment.