diff --git a/js/app.js b/js/app.js index f4ff7d9d..abc9299c 100644 --- a/js/app.js +++ b/js/app.js @@ -1081,6 +1081,8 @@ OC.Contacts = OC.Contacts || { }); $('.import').on('click keydown', function(event) { + // NOTE: Test if document title changes. If so there's a fix in + // https://github.com/owncloud/apps/pull/212#issuecomment-10516723 if(wrongKey(event)) { return; } @@ -1088,7 +1090,7 @@ OC.Contacts = OC.Contacts || { self.hideActions(); }); - $('.export').on('click keydown', function(event) { + $('.export,.import').on('click keydown', function(event) { if(wrongKey(event)) { return; } diff --git a/templates/contacts.php b/templates/contacts.php index 063c092e..cf2960b2 100644 --- a/templates/contacts.php +++ b/templates/contacts.php @@ -25,7 +25,24 @@