Change several API calls to POST type
This commit is contained in:
parent
47c9375f10
commit
863a3d4af4
|
|
@ -58,6 +58,7 @@ function getSortOrder(refresh = true) {
|
||||||
function cycleSortOrder() {
|
function cycleSortOrder() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : 'ajax/cyclesortorder.php',
|
url : 'ajax/cyclesortorder.php',
|
||||||
|
type : 'POST',
|
||||||
dataType : 'json',
|
dataType : 'json',
|
||||||
success : function(data, stat, jqo) {
|
success : function(data, stat, jqo) {
|
||||||
if ( !data.validated ) {
|
if ( !data.validated ) {
|
||||||
|
|
@ -85,7 +86,6 @@ function cycleSortOrder() {
|
||||||
* - If the user is not validated, redirects to the login page.
|
* - If the user is not validated, redirects to the login page.
|
||||||
* - Updates the current path and path navigator.
|
* - Updates the current path and path navigator.
|
||||||
* - Appends each folder or issue entry to the list.
|
* - 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.
|
* - Removes the loading notification upon completion.
|
||||||
*
|
*
|
||||||
* @function
|
* @function
|
||||||
|
|
@ -125,6 +125,7 @@ function getFolderContents() {
|
||||||
function changeFolder(path) {
|
function changeFolder(path) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : 'ajax/setpath.php',
|
url : 'ajax/setpath.php',
|
||||||
|
type : 'POST',
|
||||||
data : {path: path},
|
data : {path: path},
|
||||||
dataType : 'json',
|
dataType : 'json',
|
||||||
success : function(data, stat, jqo) {
|
success : function(data, stat, jqo) {
|
||||||
|
|
@ -156,6 +157,7 @@ function updateCurrentPage() {
|
||||||
var currentPage = lightbox.currentPosition;
|
var currentPage = lightbox.currentPosition;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : 'ajax/setpage.php',
|
url : 'ajax/setpage.php',
|
||||||
|
type : 'POST',
|
||||||
data : {page: currentPage},
|
data : {page: currentPage},
|
||||||
dataType : 'json',
|
dataType : 'json',
|
||||||
success : function(data, stat, jqo) {
|
success : function(data, stat, jqo) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user