|
@@ -456,7 +456,27 @@ function local_store_load() {
|
456
|
456
|
$(document).ready(function () {
|
457
|
457
|
local_store_load();
|
458
|
458
|
ui_setup_color_selector();
|
459
|
|
- $('.icon-list').typeahead({source:icon_names});
|
|
459
|
+ $('.icon-list').typeahead({
|
|
460
|
+ source:icon_names,
|
|
461
|
+ items: 'all',
|
|
462
|
+ render: function (items) {
|
|
463
|
+ var that = this;
|
|
464
|
+
|
|
465
|
+ items = $(items).map(function (i, item) {
|
|
466
|
+ i = $(that.options.item).data('value', item);
|
|
467
|
+ i.find('a').html(that.highlighter(item));
|
|
468
|
+ var classname = 'icon-' + item.split(' ').join('-').toLowerCase()
|
|
469
|
+ i.find('a').append('<span class="' + classname + '"></span>')
|
|
470
|
+ return i[0];
|
|
471
|
+ });
|
|
472
|
+
|
|
473
|
+ if (this.autoSelect) {
|
|
474
|
+ items.first().addClass('active');
|
|
475
|
+ }
|
|
476
|
+ this.$menu.html(items);
|
|
477
|
+ return this;
|
|
478
|
+ }
|
|
479
|
+ });
|
460
|
480
|
|
461
|
481
|
$("#button-generate").click(ui_generate);
|
462
|
482
|
$("#button-load").click(function () { $("#file-load").click(); });
|