Commit b341b2d7 authored by khawkins98's avatar khawkins98
Browse files

Function nesting

parent 1ebddf7a
......@@ -44,25 +44,26 @@ function enableUserDatePicking() {
});
}
// Bootstrap
// --------
$(document).ready(function() {
// Initialise all the queries.
// This gets invoke when google is ready and when the user calls a refresh by selecting a date
// requestedOriginDate = YYYYMMDD format, ie: 20170122
function bootstrapCustomEBIAnalytics(requestedOriginDate) {
// Initialise all the queries.
// This gets invoke when google is ready and when the user calls a refresh by selecting a date
// requestedOriginDate = YYYYMMDD format, ie: 20170122
function bootstrapCustomEBIAnalytics(requestedOriginDate) {
shared['originDate'] = moment(requestedOriginDate, "YYYYMMDD"); // we allow user to specify an origin date
analyticsAuthorize(shared['clientid']);
shared['originDate'] = moment(requestedOriginDate, "YYYYMMDD"); // we allow user to specify an origin date
analyticsAuthorize(shared['clientid']);
// Render traffic overview graph
render_queue('traffic-overview',0);
// Render traffic overview graph
render_queue('traffic-overview',0);
// Render all the of charts for this view.
render_queue('overview-list',0);
// Render all the of charts for this view.
render_queue('overview-list',0);
// $("#table-report").tablesorter();
}
// $("#table-report").tablesorter();
}
// Bootstrap
// --------
$(document).ready(function() {
// when the GAPI is ready, run the process
gapi.analytics.ready(function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment