Skip to content

Commit a0a568b

Browse files
committed
Replace images with Font Awesome icons
1 parent c5fe17a commit a0a568b

22 files changed

Lines changed: 85 additions & 789 deletions

src/rails_admin/filtering-multiselect.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ import I18n from "./i18n";
6969
this.element.attr("id")
7070
);
7171
this.wrapper.insertAfter(this.element);
72-
var header = $('<div class="ra-multiselect-header ui-helper-clearfix">');
72+
var header = $('<div class="ra-multiselect-header">');
7373
this.filter = $(
7474
'<input type="search" placeholder="' +
7575
this.options.regional.search +
@@ -93,35 +93,31 @@ import I18n from "./i18n";
9393
this.collection = $('<select multiple="multiple"></select>');
9494
this.collection.addClass("form-control ra-multiselect-collection");
9595
this.addAll = $(
96-
'<a href="#" class="ra-multiselect-item-add-all"><span class="ui-icon ui-icon-circle-triangle-e"></span>' +
96+
'<a href="#" class="ra-multiselect-item-add-all"><span class="fas fa-chevron-circle-right"></span>' +
9797
this.options.regional.chooseAll +
9898
"</a>"
9999
);
100100
columns.left.html(this.collection).append(this.addAll);
101101
this.collection.wrap('<div class="wrapper"/>');
102102

103103
this.add = $(
104-
'<a href="#" class="ui-icon ui-icon-circle-triangle-e ra-multiselect-item-add">' +
105-
this.options.regional.add +
106-
"</a>"
107-
);
104+
'<a href="#" class="fas fa-chevron-circle-right ra-multiselect-item-add"></a>'
105+
).attr("title", this.options.regional.add);
108106
columns.center.append(this.add);
109107
if (this.options.removable) {
110108
this.remove = $(
111-
'<a href="#" class="ui-icon ui-icon-circle-triangle-w ra-multiselect-item-remove">' +
112-
this.options.regional.remove +
113-
"</a>"
114-
);
109+
'<a href="#" class="fas fa-chevron-circle-left ra-multiselect-item-remove"></a>'
110+
).attr("title", this.options.regional.remove);
115111
columns.center.append(this.remove);
116112
}
117113
if (this.options.sortable) {
118114
this.up = $(
119-
'<a href="#" class="ui-icon ui-icon-circle-triangle-n ra-multiselect-item-up">' +
115+
'<a href="#" class="fas fa-chevron-circle-up ra-multiselect-item-up">' +
120116
this.options.regional.up +
121117
"</a>"
122118
);
123119
this.down = $(
124-
'<a href="#" class="ui-icon ui-icon-circle-triangle-s ra-multiselect-item-down">' +
120+
'<a href="#" class="fas fa-chevron-circle-down ra-multiselect-item-down">' +
125121
this.options.regional.down +
126122
"</a>"
127123
);
@@ -134,7 +130,7 @@ import I18n from "./i18n";
134130
columns.right.append(this.selection);
135131
if (this.options.removable) {
136132
this.removeAll = $(
137-
'<a href="#" class="ra-multiselect-item-remove-all"><span class="ui-icon ui-icon-circle-triangle-w"></span>' +
133+
'<a href="#" class="ra-multiselect-item-remove-all"><span class="fas fa-chevron-circle-left"></span>' +
138134
this.options.regional.clearAll +
139135
"</a>"
140136
);
-168 Bytes
Binary file not shown.
-2.6 KB
Binary file not shown.
-494 Bytes
Binary file not shown.
-1.32 KB
Binary file not shown.
-3.61 KB
Binary file not shown.
-3.61 KB
Binary file not shown.
-150 Bytes
Binary file not shown.
-140 Bytes
Binary file not shown.
-596 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)