mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
files_opds: add option to schedule metadata rescan, bumped version to v0.6.1, new dist file
This commit is contained in:
parent
30ccabed34
commit
0d96eb08a4
7 changed files with 59 additions and 2 deletions
|
@ -17,6 +17,24 @@ $(document).ready(function(){
|
|||
$('#opds-really-clear-bookshelf,#opds-dont-clear-bookshelf').hide();
|
||||
});
|
||||
|
||||
// schedule rescan
|
||||
$('#opds-rescan').on("click", function() {
|
||||
$('#opds-really-rescan,#opds-dont-rescan').show();
|
||||
});
|
||||
$('#opds-dont-rescan').on("click", function() {
|
||||
$('#opds-really-rescan,#opds-dont-rescan').hide();
|
||||
});
|
||||
$('#opds-really-rescan').on("click", function() {
|
||||
$.post(OC.filePath('files_opds','ajax','schedule_rescan.php'), {},
|
||||
function(result){
|
||||
if(result) {
|
||||
OC.msg.finishedSaving('#opds-personal .scn', result);
|
||||
}
|
||||
});
|
||||
$('#opds-really-rescan,#opds-dont-rescan').hide();
|
||||
});
|
||||
|
||||
|
||||
// save settings
|
||||
var opdsSettings = {
|
||||
save : function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue