# HG changeset patch # User Zoe Hong # Date 1434976033 -7200 # Node ID 2c35af0d78f3e70a2c99740d40afe880ca669c8c # Parent 28f26315506ec51c376abba41d5d8da112930376 bug fixed: sessionId after saving diff -r 28f26315506e -r 2c35af0d78f3 check_sections_details.php --- a/check_sections_details.php Wed May 27 16:13:50 2015 +0200 +++ b/check_sections_details.php Mon Jun 22 14:27:13 2015 +0200 @@ -178,7 +178,10 @@
- + diff -r 28f26315506e -r 2c35af0d78f3 config/config.php --- a/config/config.php Wed May 27 16:13:50 2015 +0200 +++ b/config/config.php Mon Jun 22 14:27:13 2015 +0200 @@ -8,7 +8,7 @@ $mysql_server = "localhost"; $mysql_user = "root"; $mysql_password = "admin"; - $server_host = "http://localgazetteers/"; + $server_host = "http://localgazetteers-test/"; $lgserver_url = $server_host."LGServices/"; } else { diff -r 28f26315506e -r 2c35af0d78f3 js/check_sections_details.js --- a/js/check_sections_details.js Wed May 27 16:13:50 2015 +0200 +++ b/js/check_sections_details.js Mon Jun 22 14:27:13 2015 +0200 @@ -342,6 +342,7 @@ var version=version; $("#loading").show(); + $.post("edit_section_db.php", // use ajax to post to a php then wait for return {//post data command:"write", @@ -359,7 +360,8 @@ var count=reg.exec(href); reg = /[^\?]+/g; href = reg.exec(href); - href=href+"?book_id="+bookId+"&"+count+"&hideDeletedChecked="+hideDeletedChecked+"&editor="+editor; + + href=href+"?book_id="+bookId+"&"+count+"&hideDeletedChecked="+hideDeletedChecked+"&editor="+editor+"&sessionId="session_id; location.href=href; //refresh the page to load the sections saved in db }else{