parent
c300b8f36d
commit
ae35ef12c2
|
@ -43,6 +43,7 @@ function setWatchedDirEvents() {
|
|||
$('#storageFolder-ok').click(function(){
|
||||
var url, chosen;
|
||||
|
||||
if(confirm("Are you sure you want to change the storage folder?")){
|
||||
url = "/Preference/change-stor-directory";
|
||||
chosen = $('#storageFolder').val();
|
||||
|
||||
|
@ -54,6 +55,7 @@ function setWatchedDirEvents() {
|
|||
$("#watched-folder-section").append(json.subform);
|
||||
setWatchedDirEvents();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('#watchedFolder-ok').click(function(){
|
||||
|
@ -73,6 +75,7 @@ function setWatchedDirEvents() {
|
|||
});
|
||||
|
||||
$('.selected-item').find('.ui-icon-close').click(function(){
|
||||
if(confirm("Are you sure you want to remove the watched folder?")){
|
||||
var row = $(this).parent();
|
||||
var folder = $(this).prev().text();
|
||||
|
||||
|
@ -86,6 +89,7 @@ function setWatchedDirEvents() {
|
|||
$("#watched-folder-section").append(json.subform);
|
||||
setWatchedDirEvents();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue