1 var lsfilter_textarea = {
5 init: function(element, orderelement)
7 var self = this; // To be able to access it from within handlers
9 this.element = element;
10 this.orderelement = orderelement;
11 this.element.bind('keyup paste cut', function(evt)
13 var query = $.trim((self.element.val()).toString());
14 lsfilter_main.update_delayed(query, 'textarea');
18 'update_failed': function() {
19 this.element.css("border", "2px solid #f40");
21 'update_ok': function(data) {
24 this.element.css("border", "2px solid #5d2");
25 if (data.source == 'textarea') return;
26 this.element.val(data.query);
31 var query = this.element.val();
32 var order = this.orderelement.val();
34 lsfilter_main.update(query, 'textarea', order);