Replace 'fa-clock-o' with 'fa-clock' which is appropriate for font awesome v5

pull/35/head
Akshay Joshi 2020-08-21 13:44:29 +05:30
parent fbbbc36221
commit dd6ae193ff
3 changed files with 6 additions and 6 deletions

View File

@ -2943,19 +2943,19 @@ define([
if (this.$el.find('.timepicker').is(':visible')){
this.$el.find('.fa-calendar-alt').click();
}else{
this.$el.find('.fa-clock-o').click();
this.$el.find('.fa-clock').click();
}
},
controlUp:function() {
this.$el.find('.fa-clock-o').click();
this.$el.find('.fa-clock').click();
let $el = this.$el.find('.datetimepicker-input');
let currdate = $el.data('datetimepicker').date().clone();
$el.datetimepicker('date', currdate.add(1, 'h'));
},
controlDown:function() {
this.$el.find('.fa-clock-o').click();
this.$el.find('.fa-clock').click();
let $el = this.$el.find('.datetimepicker-input');
let currdate = $el.data('datetimepicker').date().clone();
$el.datetimepicker('date', currdate.subtract(1, 'h'));

View File

@ -1862,7 +1862,7 @@ define([
if (self.$el.data('datetimepicker').widget.find('.timepicker').is(':visible')){
self.$el.data('datetimepicker').widget.find('.fa-calendar-alt').click();
}else{
self.$el.data('datetimepicker').widget.find('.fa-clock-o').click();
self.$el.data('datetimepicker').widget.find('.fa-clock').click();
}
}

View File

@ -107,9 +107,9 @@ define(['jquery', 'underscore', 'sources/gettext', 'sources/url_for'],
// Idle in transaction
case 2:
if(sqlEditorUtils.previousStatus != status &&
!$status_el.hasClass('fa-clock-o')) {
!$status_el.hasClass('fa-clock')) {
$status_el.removeClass()
.addClass('fa fa-clock-o');
.addClass('fa fa-clock');
is_status_changed = true;
}
break;