summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-31 21:31:59 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-31 21:31:59 -0400
commit83b935a1c2cd827610a3980ed559ff286ef41431 (patch)
tree371b84f2116e1a368e0c57ab8f56ce75df3d19cc /core
parentb6aa5d2875bf171a7cf508102ef16f42b47b984a (diff)
downloadnextcloud-server-83b935a1c2cd827610a3980ed559ff286ef41431.tar.gz
nextcloud-server-83b935a1c2cd827610a3980ed559ff286ef41431.zip
Prevent up and down arrow from changing the share with input value
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 2d6bc653fa7..5832acfd454 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -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 shareWith = selected.item.value.shareWith;
$(this).val(shareWith);