projects
/
qcg-portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d69ee57
)
don't save old value for host selector
author
Maciej Tronowski
<mtro@man.poznan.pl>
Thu, 16 Apr 2015 08:53:08 +0000
(10:53 +0200)
committer
Maciej Tronowski
<mtro@man.poznan.pl>
Thu, 16 Apr 2015 08:53:08 +0000
(10:53 +0200)
filex/static/filex/filex.js
patch
|
blob
|
history
diff --git
a/filex/static/filex/filex.js
b/filex/static/filex/filex.js
index
29589c3
..
396064e
100644
(file)
--- a/
filex/static/filex/filex.js
+++ b/
filex/static/filex/filex.js
@@
-296,17
+296,11
@@
$(function(){
return '<div class="create">Dodaj <em>' + escape(data.input) + '</em>…</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();
}