save library options on dialog close
This commit is contained in:
parent
89f41cdea2
commit
c50d82e592
3 changed files with 25 additions and 2 deletions
|
@ -1757,6 +1757,26 @@
|
|||
contentType: 'application/json'
|
||||
});
|
||||
};
|
||||
self.updateVirtualFolderOptions = function (id, libraryOptions) {
|
||||
|
||||
if (!id) {
|
||||
throw new Error("null name");
|
||||
}
|
||||
|
||||
var url = "Library/VirtualFolders/LibraryOptions";
|
||||
|
||||
url = self.getUrl(url);
|
||||
|
||||
return self.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
data: JSON.stringify({
|
||||
Id: id,
|
||||
LibraryOptions: libraryOptions
|
||||
}),
|
||||
contentType: 'application/json'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Renames a virtual folder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue