Change several API calls to POST type

This commit is contained in:
Junior 2026-11-08 15:22:32 -05:00
parent 47c9375f10
commit 863a3d4af4

View File

@ -58,6 +58,7 @@ function getSortOrder(refresh = true) {
function cycleSortOrder() {
$.ajax({
url : 'ajax/cyclesortorder.php',
type : 'POST',
dataType : 'json',
success : function(data, stat, jqo) {
if ( !data.validated ) {
@ -85,7 +86,6 @@ function cycleSortOrder() {
* - If the user is not validated, redirects to the login page.
* - Updates the current path and path navigator.
* - Appends each folder or issue entry to the list.
* - Attaches click handlers to folder and issue elements for navigation and reading.
* - Removes the loading notification upon completion.
*
* @function
@ -125,6 +125,7 @@ function getFolderContents() {
function changeFolder(path) {
$.ajax({
url : 'ajax/setpath.php',
type : 'POST',
data : {path: path},
dataType : 'json',
success : function(data, stat, jqo) {
@ -156,6 +157,7 @@ function updateCurrentPage() {
var currentPage = lightbox.currentPosition;
$.ajax({
url : 'ajax/setpage.php',
type : 'POST',
data : {page: currentPage},
dataType : 'json',
success : function(data, stat, jqo) {