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:
parent
0f7a2b145a
commit
e135c7ba14
5 changed files with 17 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue