wip javascript
This commit is contained in:
@@ -1,3 +1,21 @@
|
||||
QueryParameters = (function()
|
||||
{
|
||||
var result = {};
|
||||
|
||||
if (window.location.search)
|
||||
{
|
||||
// split up the query string and store in an associative array
|
||||
var params = window.location.search.slice(1).split("&");
|
||||
for (var i = 0; i < params.length; i++)
|
||||
{
|
||||
var tmp = params[i].split("=");
|
||||
result[tmp[0]] = unescape(tmp[1]);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}());
|
||||
|
||||
|
||||
saveSuccessFunctionReloadClient = function(data, textStatus, jqXHR) {
|
||||
$("#dialog-form").dialog("close");
|
||||
|
||||
-9
@@ -139,8 +139,6 @@ function initialiseReporting(params) {
|
||||
showMsg("OAuth params were not passed");
|
||||
}
|
||||
|
||||
googleLoaded = false;
|
||||
|
||||
reportListing = [];
|
||||
listOfParameters = [];
|
||||
|
||||
@@ -762,13 +760,6 @@ return 'var selectSuccess = function(data, textStatus,jqXHR){' +
|
||||
|
||||
function createChart(theData) {
|
||||
|
||||
if (googleLoaded == false)
|
||||
{
|
||||
google.load("visualization", "1", {packages:["corechart"]});
|
||||
googleLoaded = true;
|
||||
}
|
||||
|
||||
|
||||
RData = new google.visualization.DataTable();
|
||||
RData.addColumn('string', dataTableDef.aoColumns[0].sTitle);
|
||||
RData.addColumn('number', dataTableDef.aoColumns[1].sTitle);
|
||||
Reference in New Issue
Block a user