integration/v2/js/keyword-mosaic.js
changeset 181 f0dc53d8b462
parent 179 b7fabb9e5d9f
child 182 dde608cfd823
equal deleted inserted replaced
180:928583c82325 181:f0dc53d8b462
    61         enabledItems.removeClass("disabled");
    61         enabledItems.removeClass("disabled");
    62     }
    62     }
    63     
    63     
    64     keywordslist.slice(0,100).forEach(function(kw) {
    64     keywordslist.slice(0,100).forEach(function(kw) {
    65         var li = $('<li class="box-shadow-2">'),
    65         var li = $('<li class="box-shadow-2">'),
    66             outera = $('<a class="display-keyword" href="#">'),
    66             texta = $('<a class="display-keyword" href="#">'),
    67             innera = $('<a class="icon-action" href="#">');
    67             actiona = $('<a class="icon-action" href="#">');
    68         outera.text(kw.keyword + ' ');
    68         texta.text(kw.keyword + ' ');
    69         outera.append(innera);
    69         li.append(actiona);
    70         li.append(outera);
    70         li.append(texta);
    71         kw.li = li;
    71         kw.li = li;
    72         li.click(function() {
    72         li.click(function() {
    73             if (kw.enabled) {
    73             if (kw.enabled) {
    74                 keywordslist.forEach(function(k) {
    74                 keywordslist.forEach(function(k) {
    75                     k.enabled = false;
    75                     k.enabled = false;
    81                 });
    81                 });
    82             }
    82             }
    83             updateKeywords();
    83             updateKeywords();
    84             return false;
    84             return false;
    85         });
    85         });
    86         innera.click(function() {
    86         actiona.click(function() {
    87             kw.enabled = !kw.enabled;
    87             kw.enabled = !kw.enabled;
    88             updateKeywords();
    88             updateKeywords();
    89             return false;
    89             return false;
    90         });
    90         });
    91         filterlist.append(li);
    91         filterlist.append(li);