don't save old value for host selector
authorMaciej Tronowski <mtro@man.poznan.pl>
Thu, 16 Apr 2015 08:53:08 +0000 (10:53 +0200)
committerMaciej Tronowski <mtro@man.poznan.pl>
Thu, 16 Apr 2015 08:53:08 +0000 (10:53 +0200)
filex/static/filex/filex.js

index 29589c3..396064e 100644 (file)
@@ -296,17 +296,11 @@ $(function(){
                         return '<div class="create">Dodaj <em>' + escape(data.input) + '</em>&hellip;</div>';
                     }
                 },
-                onItemRemove: function(value) {
-                    this.oldValue = value;
-                },
                 onItemAdd: function(value) {
                     view.load(value);
                     this.blur();
                 },
                 onBlur: function() {
-                    if (!this.getValue() && this.oldValue)
-                        this.addItem(this.oldValue);
-
                     $('#host').removeClass('edit');
                     this.clear();
                 }