diff --git a/package.json b/package.json index c4c7dae1a..7f0745b8b 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "jath": "danielweck/jath", "mathjax-single-file": "danielweck/MathJax-single-file", "bootstrap": "3.x", - "bootstrap-accessibility-plugin": "latest", + "bootstrap-accessibility-plugin": "paypal/bootstrap-accessibility-plugin", "hammerjs": "latest", "jquery-hammerjs": "latest", "screenfull": "latest", diff --git a/package/package_base.cson b/package/package_base.cson index 3a5f7be62..80254fd52 100644 --- a/package/package_base.cson +++ b/package/package_base.cson @@ -133,7 +133,7 @@ devDependencies: "bootstrap": '3.x' - "bootstrap-accessibility-plugin": 'latest' + "bootstrap-accessibility-plugin": 'paypal/bootstrap-accessibility-plugin' "hammerjs": 'latest' diff --git a/src/js/EpubLibrary.js b/src/js/EpubLibrary.js index f0ae2a176..818e4fa50 100644 --- a/src/js/EpubLibrary.js +++ b/src/js/EpubLibrary.js @@ -124,20 +124,6 @@ Helpers){ $('.details-dialog .modal-body').html(bodyStr); - - $('#buttEpubDetailsDelete').on('keydown',function(evt) { - if(evt.which === 9 && !(evt.shiftKey | evt.ctrlKey | evt.metaKey | evt.altKey)) { // TAB pressed - evt.preventDefault(); - $('#closeEpubDetailsCross').focus(); - } - }); - $('#closeEpubDetailsCross').on('keydown',function(evt) { - if(evt.which === 9 && evt.shiftKey) { // shift-TAB pressed - evt.preventDefault(); - $('#buttEpubDetailsDelete').focus(); - } - }); - $('.details-dialog .delete').on('click', function(){ $('.details-dialog').modal('hide'); var success = function(){ @@ -461,19 +447,6 @@ Helpers){ canHandleDirectory : libraryManager.canHandleDirectory(), strings: Strings })); - - $('#buttCancelAddEpub').on('keydown',function(evt) { - if(evt.which === 9 && !(evt.shiftKey | evt.ctrlKey | evt.metaKey | evt.altKey)) { // TAB pressed - evt.preventDefault(); - $('#closeAddEpubCross').focus(); - } - }); - $('#closeAddEpubCross').on('keydown',function(evt) { - if(evt.which === 9 && evt.shiftKey) { // shift-TAB pressed - evt.preventDefault(); - $('#buttCancelAddEpub').focus(); - } - }); Versioning.getVersioningInfo(function(version){ $appContainer.append(AboutDialog({imagePathPrefix: moduleConfig.imagePathPrefix, strings: Strings, dateTimeString: version.dateTimeString, viewerJs: version.readiumJsViewer, readiumJs: version.readiumJs, sharedJs: version.readiumSharedJs, cfiJs: version.readiumCfiJs})); diff --git a/src/js/ReaderSettingsDialog.js b/src/js/ReaderSettingsDialog.js index 582658d4c..739df9a06 100644 --- a/src/js/ReaderSettingsDialog.js +++ b/src/js/ReaderSettingsDialog.js @@ -102,18 +102,6 @@ define(['./ModuleConfig', 'hgn!readium_js_viewer_html_templates/settings-dialog. $("#tab-main").attr('aria-expanded', "false"); $("#tab-keyboard").attr('aria-expanded', "true"); }); - $('#buttSave').on('keydown',function(evt) { - if(evt.which === 9 && !(evt.shiftKey | evt.ctrlKey | evt.metaKey | evt.altKey)) { // TAB pressed - evt.preventDefault(); - $('#closeSettingsCross').focus(); - } - }); - $('#closeSettingsCross').on('keydown',function(evt) { - if(evt.which === 9 && evt.shiftKey) { // shift-TAB pressed - evt.preventDefault(); - $('#buttSave').focus(); - } - }); $('#settings-dialog').on('hide.bs.modal', function(){ // IMPORTANT: not "hidden.bs.modal"!! (because .off() in diff --git a/src/templates/add-epub-dialog.html b/src/templates/add-epub-dialog.html index 879c85b62..d7787476f 100644 --- a/src/templates/add-epub-dialog.html +++ b/src/templates/add-epub-dialog.html @@ -34,9 +34,9 @@ diff --git a/src/templates/details-body.html b/src/templates/details-body.html index 57711ee41..a2cb96df7 100644 --- a/src/templates/details-body.html +++ b/src/templates/details-body.html @@ -18,8 +18,8 @@

{{data.title}}

{{/data.coverHref}}
- - + +