comparison static/links.js @ 20:a8887fb93676

hide share data from the public. bug in links filter box Ignore-this: 2a390b207b8e9c8d430acd268b6d765d
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 17 Mar 2013 01:03:43 -0700
parents e054949143e9
children 8008ec2fd763
comparison
equal deleted inserted replaced
19:9fc1f5c8aa4e 20:a8887fb93676
84 }, 84 },
85 change: function (ev) { 85 change: function (ev) {
86 console.log("ch", ev.val); 86 console.log("ch", ev.val);
87 }, 87 },
88 initSelection: function (element, callback) { 88 initSelection: function (element, callback) {
89 var data = []; 89 var data = [];
90 $(element.val().split(",")).each(function () { 90 $(element.val().split(",")).each(function () {
91 data.push({id: this, text: this}); 91 if (this != "") {
92 data.push({id: this, text: this});
93 }
92 }); 94 });
93 callback(data); 95 callback(data);
94 } 96 }
95 }); 97 });
96 $("#filterTag").select2("val", model.filterTags()); 98 $("#filterTag").select2("val", model.filterTags());