Upgrade font awesome from v4 to v5. Fixes #5731

This commit is contained in:
Nikhil Mohite
2020-08-13 12:04:00 +05:30
committed by Akshay Joshi
parent 36574b25b6
commit 93adf6884f
41 changed files with 108 additions and 72 deletions
+3 -3
View File
@@ -2681,7 +2681,7 @@ define([
text: '',
extraClasses: ['pg-el-12', 'd-flex'],
noteClass: 'backform-note',
faIcon: 'fa-file-text-o',
faIcon: 'fa-file-alt',
faExtraClass: 'fa-rotate-180 fa-flip-vertical',
iconWidthClass: 'col-0 pr-2',
textWidthClass: 'col-sm',
@@ -2847,7 +2847,7 @@ define([
'<div class="input-group <%=Backform.controlsClassName%>">',
' <input id="<%=cId%>" type="text" class="<%=Backform.controlClassName%> datetimepicker-input <%=extraClasses.join(\' \')%>" name="<%=name%>" value="<%-value%>" placeholder="<%-placeholder%>" <%=disabled ? "disabled" : ""%> <%=readonly ? "readonly aria-readonly=true" : ""%> <%=required ? "required" : ""%> data-toggle="datetimepicker"/>',
' <div class="input-group-append">',
' <span class="input-group-text fa fa-calendar"></span>',
' <span class="input-group-text fa fa-calendar-alt"></span>',
' </div>',
'</div>',
'<% if (helpMessage && helpMessage.length) { %>',
@@ -2938,7 +2938,7 @@ define([
timePicker:function() {
if (this.$el.find('.timepicker').is(':visible')){
this.$el.find('.fa-calendar').click();
this.$el.find('.fa-calendar-alt').click();
}else{
this.$el.find('.fa-clock-o').click();
}
+3 -3
View File
@@ -440,7 +440,7 @@ define([
if (editable) {
this.$el.html(
'<i class=\'fa fa-pencil-square subnode-edit-in-process\' title=\'' + gettext('Edit row') + '\' aria-label=\'' + gettext('Edit row') + '\'></i>'
'<i class=\'fa fa-pen-square subnode-edit-in-process\' title=\'' + gettext('Edit row') + '\' aria-label=\'' + gettext('Edit row') + '\'></i>'
);
let body = $(this.$el).parents()[1],
container = $(body).find('.tab-content:first > .tab-pane.active:first');
@@ -459,7 +459,7 @@ define([
},
render: function() {
this.$el.empty();
this.$el.html('<i class=\'fa fa-pencil-square-o\' title=\'' + gettext('Edit row') + '\' aria-label=\'' + gettext('Edit row') + '\'></i>');
this.$el.html('<i class=\'fa fa-edit\' title=\'' + gettext('Edit row') + '\' aria-label=\'' + gettext('Edit row') + '\'></i>');
this.delegateEvents();
if (this.grabFocus)
this.$el.trigger('focus');
@@ -1857,7 +1857,7 @@ define([
if (event.altKey && event.keyCode == 84){
if (self.$el.data('datetimepicker').widget.find('.timepicker').is(':visible')){
self.$el.data('datetimepicker').widget.find('.fa-calendar').click();
self.$el.data('datetimepicker').widget.find('.fa-calendar-alt').click();
}else{
self.$el.data('datetimepicker').widget.find('.fa-clock-o').click();
}
@@ -15,7 +15,7 @@ export const QuerySources = {
ICON_CSS_CLASS: 'fa fa-play',
},
EXPLAIN: {
ICON_CSS_CLASS: 'fa fa-hand-pointer-o',
ICON_CSS_CLASS: 'fa fa-hand-pointer',
},
EXPLAIN_ANALYZE: {
ICON_CSS_CLASS: 'fa fa-list-alt',
+1 -1
View File
@@ -205,7 +205,7 @@ define(['jquery', 'underscore', 'sources/gettext', 'sources/url_for'],
columns headers. Instead of a button, an icon is created */
let content = null;
if(is_editable) {
content = '<i class="fa fa-pencil"></i>';
content = '<i class="fa fa-pencil-alt"></i>';
}
else {
content = '<i class="fa fa-lock"></i>';