1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

OPDS catalog: add Google Books API key (optional, increases rate limit when used)

This commit is contained in:
frankdelange 2015-02-13 00:33:24 +01:00
parent 0f7a2b145a
commit e135c7ba14
5 changed files with 17 additions and 4 deletions

View file

@ -28,7 +28,8 @@ $(document).ready(function(){
opdsThumbX : $('#opds-thumb-x').val(),
opdsThumbY : $('#opds-thumb-y').val(),
opdsFeedSubtitle : $('#opds-feed-subtitle').val(),
opdsIsbndbKey : $('#opds-isbndb-key').val()
opdsIsbndbKey : $('#opds-isbndb-key').val(),
opdsGoogleKey : $('#opds-google-key').val()
};
OC.msg.startSaving('#opds-admin .msg');
$.post(OC.filePath('files_opds', 'ajax', 'admin.php'), data, opdsAdminCoverSettings.afterSave);
@ -43,8 +44,8 @@ $(document).ready(function(){
$('#opds-preview-opendocument').on("change", opdsAdminSettings.save);
$('#opds-preview-msoffice').on("change", opdsAdminSettings.save);
$('#opds-cover-x,#opds-cover-y,#opds-thumb-x,#opds-thumb-y,#opds-feed-subtitle,#opds-isbndb-key').blur(opdsAdminCoverSettings.save);
$('#opds-cover-x,#opds-cover-y,#opds-thumb-x,#opds-thumb-y,#opds-feed-subtitle,#opds-isbndb-key').keypress(function( event ) {
$('#opds-cover-x,#opds-cover-y,#opds-thumb-x,#opds-thumb-y,#opds-feed-subtitle,#opds-isbndb-key,#opds-google-key').blur(opdsAdminCoverSettings.save);
$('#opds-cover-x,#opds-cover-y,#opds-thumb-x,#opds-thumb-y,#opds-feed-subtitle,#opds-isbndb-key,#opds-google-key').keypress(function( event ) {
if (event.which == 13) {
event.preventDefault();
opdsAdminCoverSettings.save();