mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various code cleanup.
This commit is contained in:
4
public/v1/js/lib/bootstrap-multiselect.js
vendored
4
public/v1/js/lib/bootstrap-multiselect.js
vendored
@@ -795,7 +795,7 @@
|
||||
}
|
||||
|
||||
$options.push(this.getOptionByValue(value));
|
||||
}, this))
|
||||
}, this));
|
||||
|
||||
// Cannot use select or deselect here because it would call updateOptGroups again.
|
||||
|
||||
@@ -1548,7 +1548,7 @@
|
||||
* Update opt groups.
|
||||
*/
|
||||
updateOptGroups: function () {
|
||||
var $groups = $('li.multiselect-group', this.$ul)
|
||||
var $groups = $('li.multiselect-group', this.$ul);
|
||||
var selectedClass = this.options.selectedClass;
|
||||
|
||||
$groups.each(function () {
|
||||
|
8
public/v1/js/lib/daterangepicker.js
vendored
8
public/v1/js/lib/daterangepicker.js
vendored
@@ -11,7 +11,7 @@
|
||||
// AMD. Make globaly available as well
|
||||
define(['moment', 'jquery'], function (moment, jquery) {
|
||||
if (!jquery.fn) jquery.fn = {}; // webpack server rendering
|
||||
if (typeof moment !== 'function' && moment.default) moment = moment.default
|
||||
if (typeof moment !== 'function' && moment.default) moment = moment.default;
|
||||
return factory(moment, jquery);
|
||||
});
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
@@ -417,14 +417,14 @@
|
||||
.on('mouseenter.daterangepicker', 'td.available', $.proxy(this.hoverDate, this))
|
||||
.on('change.daterangepicker', 'select.yearselect', $.proxy(this.monthOrYearChanged, this))
|
||||
.on('change.daterangepicker', 'select.monthselect', $.proxy(this.monthOrYearChanged, this))
|
||||
.on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.timeChanged, this))
|
||||
.on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.timeChanged, this));
|
||||
|
||||
this.container.find('.ranges')
|
||||
.on('click.daterangepicker', 'li', $.proxy(this.clickRange, this))
|
||||
.on('click.daterangepicker', 'li', $.proxy(this.clickRange, this));
|
||||
|
||||
this.container.find('.drp-buttons')
|
||||
.on('click.daterangepicker', 'button.applyBtn', $.proxy(this.clickApply, this))
|
||||
.on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this))
|
||||
.on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this));
|
||||
|
||||
if (this.element.is('input') || this.element.is('button')) {
|
||||
this.element.on({
|
||||
|
Reference in New Issue
Block a user