Closed theflashjordan closed 7 years ago
I'm having this problem too...
Fixed this.
In bootstrap-iconpicker.js you need to fix the updateArrows function. You need to add the disabled
property.
Iconpicker.prototype.updateArrows = function (page) {
var op = this.options;
var total_pages = this.totalPages();
if (page === 1) {
op.table.find('.btn-previous').addClass('disabled');
op.table.find('.btn-previous').prop('disabled', true); // Add this
}
else {
op.table.find('.btn-previous').removeClass('disabled');
op.table.find('.btn-previous').prop('disabled', false); // And this
}
if (page === total_pages || total_pages === 0) {
op.table.find('.btn-next').addClass('disabled');
op.table.find('.btn-next').prop('disabled', true); // And this
}
else {
op.table.find('.btn-next').removeClass('disabled');
op.table.find('.btn-next').prop('disabled', false); // And this
}
};
Found it based on this issue: https://github.com/victor-valencia/bootstrap-iconpicker/issues/35
merge and new release? :disappointed:
Any news about this bug ?
i found this bug, this can fixed it
Iconpicker.prototype.updateArrows = function (page) { var op = this.options; var total_pages = this.totalPages(); if (page === 1) { op.table.find('.btn-previous').addClass('disabled').val('0'); } else { op.table.find('.btn-previous').removeClass('disabled').val('-1'); } if (page === total_pages || total_pages === 0) { op.table.find('.btn-next').addClass('disabled').val('0'); } else { op.table.find('.btn-next').removeClass('disabled').val('1'); } };
Hi @theflashjordan, @steveostudios, @rhyudek1, @plfort, and @cyberzilla.
This feature is available in:
Regards.
Thank you!
Sent from my iPhone
On Jul 19, 2017, at 4:49 PM, Victor Valencia Rico notifications@github.com wrote:
Closed #37.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I can page to pages that don't exist. Paging buttons show disabled color & cursor, but on click they page to empty grid..