The branch, master has been updated
via 73391c9e4205af7fb1571c12961f3ab9b1e8fa54 (commit)
from d2de55cb0b40c8c8d475f85f6318ec85e4b97701 (commit)
- Log -----------------------------------------------------------------
commit 73391c9e4205af7fb1571c12961f3ab9b1e8fa54
Author: ninadsp <ninadsp16289(a)gmail.com>
Date: Tue Aug 31 19:54:07 2010 +0530
Append a random number for all Ajax queries on these pages to prevent server side caching from affecting the results
-----------------------------------------------------------------------
Summary of changes:
js/db_search.js | 10 ++++++++++
js/server_privileges.js | 16 ++++++++++++++--
js/sql.js | 9 +++++++++
js/tbl_select.js | 10 ++++++++++
4 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/js/db_search.js b/js/db_search.js
index 8a0474f..94fdf6c 100644
--- a/js/db_search.js
+++ b/js/db_search.js
@@ -16,6 +16,16 @@
$(document).ready(function() {
/**
+ * Set a parameter for all Ajax queries made on this page. Append a random
+ * number to tell server that each Ajax request is a new one
+ */
+ $.ajaxSetup({
+ data: {'random': function() {
+ return Math.random();
+ }}
+ });
+
+ /**
* Ajax Event handler for retrieving the result of an SQL Query
*
* @uses PMA_ajaxShowMessage()
diff --git a/js/server_privileges.js b/js/server_privileges.js
index e59ec62..dff2c65 100644
--- a/js/server_privileges.js
+++ b/js/server_privileges.js
@@ -159,7 +159,19 @@ function appendNewUser(new_user_string, new_user_initial, new_user_initial_strin
$(document).ready(function() {
/** @lends jQuery */
-
+
+ /**
+ * Set a parameter for all Ajax queries made on this page. Some queries
+ * are affected by cache settings on the server side, and hence, show stale
+ * data. Append a random number to tell server that each Ajax request is a
+ * new one
+ */
+ $.ajaxSetup({
+ data: {'random': function() {
+ return Math.random();
+ }}
+ });
+
/**
* AJAX event handler for 'Add a New User'
*
@@ -445,7 +457,7 @@ $(document).ready(function() {
PMA_ajaxShowMessage();
- $.get($(this).attr('href'), {'ajax_request' : true, 'random': Math.random()}, function(data) {
+ $.get($(this).attr('href'), {'ajax_request' : true}, function(data) {
$("#usersForm")
.hide("medium")
.siblings("#initials_table")
diff --git a/js/sql.js b/js/sql.js
index a2000ac..76e6c40 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -107,6 +107,15 @@ function appendInlineAnchor(disp_mode) {
*/
$(document).ready(function() {
+ /**
+ * Set a parameter for all Ajax queries made on this page. Append a random
+ * number to tell server that each Ajax request is a new one
+ */
+ $.ajaxSetup({
+ data: {'random': function() {
+ return Math.random();
+ }}
+ });
/**
* current value of the direction in which the table is displayed
diff --git a/js/tbl_select.js b/js/tbl_select.js
index 88796bc..12072b0 100644
--- a/js/tbl_select.js
+++ b/js/tbl_select.js
@@ -14,6 +14,16 @@
$(document).ready(function() {
/**
+ * Set a parameter for all Ajax queries made on this page. Append a random
+ * number to tell server that each Ajax request is a new one
+ */
+ $.ajaxSetup({
+ data: {'random': function() {
+ return Math.random();
+ }}
+ });
+
+ /**
* Ajax event handler for Table Search
*
* @uses PMA_ajaxShowMessage()
hooks/post-receive
--
phpMyAdmin
The annotated tag, RELEASE_3_3_7RC1 has been created
at 7a6d20edc4ed2c4061b49963610c9c5f4afefaee (tag)
tagging c39c407bb5c91fcd6d6f16049f921a3b3d7cd8a5 (commit)
replaces RELEASE_3_3_6
tagged by Marc Delisle
on Tue Aug 31 12:28:23 2010 -0400
- Log -----------------------------------------------------------------
Released 3.3.7-rc1
Herman van Rink (4):
Updated unittest to conform latest update
Add additional condition for strict checking.
Generalized include, to incorporate the Config class
Merge branch 'QA_3_3' of ssh://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin into QA_3_3
Marc Delisle (4):
3.3.7-dev
3.3.6 release
undefined variables after deleting a user
3.3.7-rc1 release
Martin Schönberger (2):
Patch #3050492, Cannot drag table box to the edge
improved patch
Michal Čihař (6):
Merge branch 'MAINT_3_3_6' into QA_3_3
Function is_null seems to be now working properly on empty blobs.
Merge branch 'MAINT_3_3_6' into QA_3_3
bug #3054458 [core] Fixed displaying number of rows.
bug #3035300 [parser] Fixed wrong definition of keywords.
[setup] Fixed escaping of server name.
-----------------------------------------------------------------------
hooks/post-receive
--
phpMyAdmin
The annotated tag, RELEASE_2_11_11RC1 has been created
at 1e643380eb1fd102d4783079edb12bf29ccce060 (tag)
tagging 0e4369a8d2e4dbd1f3e0493b75b4f85eb1f0f908 (commit)
replaces RELEASE_2_11_10_1
tagged by Marc Delisle
on Tue Aug 31 12:22:56 2010 -0400
- Log -----------------------------------------------------------------
Released 2.11.11-rc1
Herman van Rink (1):
[core] Fix broken cleanup of $_GET
Marc Delisle (2):
2.11.11-dev
2.11.11-rc1
Michal Čihař (3):
Merge remote branch 'origin/MAINT_2_11_10' into QA_2_11
Merge branch 'MAINT_2_11_10' into QA_2_11
bug #3054458 [core] Fixed displaying number of rows.
-----------------------------------------------------------------------
hooks/post-receive
--
phpMyAdmin
The branch, MAINT_2_11_11 has been created
at 0e4369a8d2e4dbd1f3e0493b75b4f85eb1f0f908 (commit)
- Log -----------------------------------------------------------------
commit 0e4369a8d2e4dbd1f3e0493b75b4f85eb1f0f908
Author: Marc Delisle <marc(a)infomarc.info>
Date: Tue Aug 31 12:16:00 2010 -0400
2.11.11-rc1
-----------------------------------------------------------------------
hooks/post-receive
--
phpMyAdmin
The branch, MAINT_3_3_7 has been created
at c39c407bb5c91fcd6d6f16049f921a3b3d7cd8a5 (commit)
- Log -----------------------------------------------------------------
commit c39c407bb5c91fcd6d6f16049f921a3b3d7cd8a5
Author: Marc Delisle <marc(a)infomarc.info>
Date: Tue Aug 31 12:09:07 2010 -0400
3.3.7-rc1 release
-----------------------------------------------------------------------
hooks/post-receive
--
phpMyAdmin