summaryrefslogtreecommitdiff
path: root/hugo/js/server_status.js
diff options
context:
space:
mode:
Diffstat (limited to 'hugo/js/server_status.js')
-rw-r--r--hugo/js/server_status.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/hugo/js/server_status.js b/hugo/js/server_status.js
new file mode 100644
index 0000000..e9fb326
--- /dev/null
+++ b/hugo/js/server_status.js
@@ -0,0 +1,25 @@
+/* vim: set expandtab sw=4 ts=4 sts=4: */
+/**
+ * @fileoverview functions used in server status pages
+ * @name Server Status
+ */
+
+var pma_token,
+ url_query,
+ server_time_diff,
+ server_os,
+ is_superuser,
+ server_db_isLocal;
+
+// Add a tablesorter parser to properly handle thousands seperated numbers and SI prefixes
+AJAX.registerOnload('server_status.js', function() {
+
+ var $js_data_form = $('#js_data');
+ pma_token = $js_data_form.find("input[name=pma_token]").val();
+ url_query = $js_data_form.find("input[name=url_query]").val();
+ server_time_diff = eval($js_data_form.find("input[name=server_time_diff]").val());
+ server_os = $js_data_form.find("input[name=server_os]").val();
+ is_superuser = $js_data_form.find("input[name=is_superuser]").val();
+ server_db_isLocal = $js_data_form.find("input[name=server_db_isLocal]").val();
+
+});