CC-3561: Add button to automatically rescan watched folders.

-done
This commit is contained in:
denise 2012-06-14 13:44:56 -04:00
parent dbd6b7444b
commit 295a8ea5fe
4 changed files with 25 additions and 0 deletions

View file

@ -77,6 +77,10 @@ function setWatchedDirEvents() {
setWatchedDirEvents();
});
});
$('#watchedFolder-rescan').click(function(){
$.get("/Preference/rescan-watch-directory", {format: "json"});
});
$('.selected-item').find('.ui-icon-close').click(function(){
if(confirm("Are you sure you want to remove the watched folder?")){