fixed a bug when changing images, not retuning to the same order and "details page"

This commit is contained in:
2018-12-01 22:05:34 -05:00
parent 4701355894
commit e5e3ad5b71
3 changed files with 9 additions and 9 deletions

View File

@@ -1,10 +1,8 @@
function thumbnailupdateurl(gameid, gamename) {
var sql;
function thumbnailupdateurl(gameid, gamename, rootpage, orderby, details) {
var url = prompt("Enter Image URL for " + gamename + " (" + gameid + ")", "");
if (url == "") {
if (url === "") {
alert ("Enter something !");
@@ -18,6 +16,7 @@ function thumbnailupdateurl(gameid, gamename) {
};
$.ajax(
{
type: "POST",
@@ -25,12 +24,13 @@ function thumbnailupdateurl(gameid, gamename) {
data: data,
success: function(data, textStatus, jqXHR)
{
$( document ).ready(function(){
$('#message').html(data);
$('#message').fadeIn('slow', function(){
$('#message').delay(3000).fadeOut();
});
$("#page").load('page.php');
$("#page").load('page.php?rootpage=' + rootpage + '&orderby=' + orderby + '&details=' + details);
});
}