[Pkg-owncloud-commits] [owncloud] 258/394: abort rename on ESC keyup
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:20 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 7a5f5a1fbe736975d4b9f36c212e5a5dac4481cb
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date: Tue Dec 18 16:39:01 2012 +0100
abort rename on ESC keyup
---
apps/files/js/filelist.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index cc8cd09..5b0d61d 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -187,6 +187,13 @@ var FileList={
td.children('a.name').show();
return false;
});
+ input.keyup(function(event){
+ if (event.keyCode == 27) {
+ tr.data('renaming',false);
+ form.remove();
+ td.children('a.name').show();
+ }
+ });
input.click(function(event){
event.stopPropagation();
event.preventDefault();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list