Code Monkey home page Code Monkey logo

Comments (7)

steveostudios avatar steveostudios commented on June 16, 2024 1

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: #35

from bootstrap-iconpicker.

plfort avatar plfort commented on June 16, 2024 1

Any news about this bug ?

from bootstrap-iconpicker.

steveostudios avatar steveostudios commented on June 16, 2024

I'm having this problem too...

from bootstrap-iconpicker.

rhyudek1 avatar rhyudek1 commented on June 16, 2024

merge and new release? 😞

from bootstrap-iconpicker.

cyberzilla avatar cyberzilla commented on June 16, 2024

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');
}
};

from bootstrap-iconpicker.

victor-valencia avatar victor-valencia commented on June 16, 2024

Hi @theflashjordan, @steveostudios, @rhyudek1, @plfort, and @cyberzilla.

This feature is available in:

v1.8.2.

  • Fix navigation to invalid pages.
  • Filling search/hidden inputs.
  • Search and filter case insensitive.
  • Support for Bootstrap 3.3.7.
  • Update license to MIT.

Regards.

from bootstrap-iconpicker.

theflashjordan avatar theflashjordan commented on June 16, 2024

from bootstrap-iconpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.