Prevent up and down arrow from changing the share with input value

This commit is contained in:
Michael Gapczynski 2012-07-31 21:31:59 -04:00
parent b6aa5d2875
commit 83b935a1c2
1 changed files with 5 additions and 1 deletions

View File

@ -113,7 +113,11 @@ OC.Share={
} }
}); });
// } // }
}, select: function(event, selected) { },
focus: function(event, focused) {
event.preventDefault();
},
select: function(event, selected) {
var shareType = selected.item.value.shareType; var shareType = selected.item.value.shareType;
var shareWith = selected.item.value.shareWith; var shareWith = selected.item.value.shareWith;
$(this).val(shareWith); $(this).val(shareWith);