websemantics / Image-Select

Image Select is an extension of Chosen, a jQuery plugin that makes long, unwieldy select boxes much more user-friendly. It provides image support for Single and Multi select HTML tags.
http://websemantics.github.io/Image-Select
MIT License
148 stars 44 forks source link

Uncaught TypeError: Cannot read property 'apply' of undefined #44

Open sarvap-praharanayuthan opened 6 years ago

sarvap-praharanayuthan commented 6 years ago

Used along with Blueimp/Fileupload.

Code:

callbacks: {
     ajaxContentAdded:function () {
          setTimeout(function () {
               imageDropdown();
          },500);
     }
}

function imageDropdown() {
    $(".imagesListDropdown").chosen();
}

HTML part:

<select id="cover" class="imagesListDropdown form-control" required name="cover">
// populated with PHP from DB array
<?php echo "<option value='{$row['id']}' data-img-src='{$path}'>{$row['title']}</option>"; ?>
</select>

Resources loaded: jQuery 2.1.0, Bootstrap 3.3.7.

screenshot 60

MaTToX3 commented 6 years ago

Any fix for that?