diff --git a/ui/content/tab_events.html b/ui/jsp/tab_events.jsp
old mode 100644
new mode 100755
similarity index 98%
rename from ui/content/tab_events.html
rename to ui/jsp/tab_events.jsp
index 2ffd07662eb..f5c4ac48e88
--- a/ui/content/tab_events.html
+++ b/ui/jsp/tab_events.jsp
@@ -1,4 +1,8 @@
-
+<%@ page import="java.util.Date" %>
+<%
+long milliseconds = new Date().getTime();
+%>
+
diff --git a/ui/content/tab_hosts.html b/ui/jsp/tab_hosts.jsp
old mode 100644
new mode 100755
similarity index 98%
rename from ui/content/tab_hosts.html
rename to ui/jsp/tab_hosts.jsp
index 6d4cf09ab66..438efabae1e
--- a/ui/content/tab_hosts.html
+++ b/ui/jsp/tab_hosts.jsp
@@ -1,4 +1,8 @@
-
+<%@ page import="java.util.Date" %>
+<%
+long milliseconds = new Date().getTime();
+%>
+
diff --git a/ui/content/tab_instances.html b/ui/jsp/tab_instances.jsp
old mode 100644
new mode 100755
similarity index 99%
rename from ui/content/tab_instances.html
rename to ui/jsp/tab_instances.jsp
index 55991f3ff01..856ca9189c8
--- a/ui/content/tab_instances.html
+++ b/ui/jsp/tab_instances.jsp
@@ -1,4 +1,8 @@
-
+<%@ page import="java.util.Date" %>
+<%
+long milliseconds = new Date().getTime();
+%>
+
diff --git a/ui/content/tab_networking.html b/ui/jsp/tab_networking.jsp
old mode 100644
new mode 100755
similarity index 99%
rename from ui/content/tab_networking.html
rename to ui/jsp/tab_networking.jsp
index e78b41eb636..98a76bd3423
--- a/ui/content/tab_networking.html
+++ b/ui/jsp/tab_networking.jsp
@@ -1,4 +1,8 @@
-
+<%@ page import="java.util.Date" %>
+<%
+long milliseconds = new Date().getTime();
+%>
+
diff --git a/ui/content/tab_storage.html b/ui/jsp/tab_storage.jsp
old mode 100644
new mode 100755
similarity index 99%
rename from ui/content/tab_storage.html
rename to ui/jsp/tab_storage.jsp
index 3abfa48568f..92f6b5ae5fb
--- a/ui/content/tab_storage.html
+++ b/ui/jsp/tab_storage.jsp
@@ -1,4 +1,8 @@
-
+<%@ page import="java.util.Date" %>
+<%
+long milliseconds = new Date().getTime();
+%>
+
diff --git a/ui/content/tab_templates.html b/ui/jsp/tab_templates.jsp
old mode 100644
new mode 100755
similarity index 99%
rename from ui/content/tab_templates.html
rename to ui/jsp/tab_templates.jsp
index 3438c971de2..db678162dbd
--- a/ui/content/tab_templates.html
+++ b/ui/jsp/tab_templates.jsp
@@ -1,4 +1,8 @@
-
+<%@ page import="java.util.Date" %>
+<%
+long milliseconds = new Date().getTime();
+%>
+
Template
diff --git a/ui/scripts/cloud.core.domains.js b/ui/scripts/cloud.core.domains.js
index db94223d8f1..572ebe8dbad 100644
--- a/ui/scripts/cloud.core.domains.js
+++ b/ui/scripts/cloud.core.domains.js
@@ -66,7 +66,7 @@ function showDomainsTab() {
function drawTree(id, level, container) {
$.ajax({
- data: "command=listDomainChildren&id="+id+"&response=json&pageSize=-1",
+ data: createURL("command=listDomainChildren&id="+id+"&response=json&pageSize=-1"),
dataType: "json",
async: false,
success: function(json) {
@@ -321,7 +321,7 @@ function showDomainsTab() {
rightPanelSearchResult.show();
var keyword = searchInput.val();
$.ajax({
- data: "command=listDomains&keyword="+keyword+"&response=json&pageSize=-1", //pageSize=-1 will return all items (no limitation)
+ data: createURL("command=listDomains&keyword="+keyword+"&response=json&pageSize=-1"), //pageSize=-1 will return all items (no limitation)
dataType: "json",
async: false,
success: function(json) {
@@ -350,7 +350,7 @@ function showDomainsTab() {
function drawRootNode(rootDomainId) {
treeContentBox.empty();
$.ajax({
- data: "command=listDomains&id="+rootDomainId+"&response=json&pageSize=-1", //pageSize=-1 will return all items (no limitation)
+ data: createURL("command=listDomains&id="+rootDomainId+"&response=json&pageSize=-1"), //pageSize=-1 will return all items (no limitation)
dataType: "json",
async: false,
success: function(json) {
diff --git a/ui/scripts/cloud.core.init.js b/ui/scripts/cloud.core.init.js
index a6d0035e164..ffc2e3bfa3c 100644
--- a/ui/scripts/cloud.core.init.js
+++ b/ui/scripts/cloud.core.init.js
@@ -29,7 +29,7 @@ $(document).ready(function() {
mainContainer = $("#maincontentarea");
// Tab Links, dashboard is the initial active tab
- mainContainer.load("content/tab_dashboard.html");
+ mainContainer.load("jsp/tab_dashboard.jsp");
// Default AJAX Setup
$.ajaxSetup({
@@ -285,31 +285,31 @@ $(document).ready(function() {
if (tabId == "menutab_dashboard_user" || tabId == "menutab_dashboard_root" || tabId == "menutab_dashboard_domain") {
showDashboardTab();
} else if (tabId == "menutab_vm") {
- mainContainer.load("content/tab_instances.html", function() {
+ mainContainer.load("jsp/tab_instances.jsp", function() {
showInstancesTab(tab.data("domainId"), tab.data("account"));
});
} else if (tabId == "menutab_networking") {
- mainContainer.load("content/tab_networking.html", function() {
+ mainContainer.load("jsp/tab_networking.jsp", function() {
showNetworkingTab(tab.data("domainId"), tab.data("account"));
});
} else if (tabId == "menutab_templates") {
- mainContainer.load("content/tab_templates.html", function() {
+ mainContainer.load("jsp/tab_templates.jsp", function() {
showTemplatesTab();
});
} else if (tabId == "menutab_events") {
- mainContainer.load("content/tab_events.html", function() {
+ mainContainer.load("jsp/tab_events.jsp", function() {
showEventsTab(tab.data("showEvents"));
});
} else if (tabId == "menutab_hosts") {
- mainContainer.load("content/tab_hosts.html", function() {
+ mainContainer.load("jsp/tab_hosts.jsp", function() {
showHostsTab();
});
} else if (tabId == "menutab_storage") {
- mainContainer.load("content/tab_storage.html", function() {
+ mainContainer.load("jsp/tab_storage.jsp", function() {
showStorageTab(tab.data("domainId"), tab.data("targetTab"));
});
} else if (tabId == "menutab_accounts") {
- mainContainer.load("content/tab_accounts.html", function() {
+ mainContainer.load("jsp/tab_accounts.jsp", function() {
showAccountsTab(tab.data("domainId"));
});
} else if (tabId == "menutab_domain") {
@@ -317,7 +317,7 @@ $(document).ready(function() {
showDomainsTab();
});
} else if (tabId == "menutab_configuration") {
- mainContainer.load("content/tab_configuration.html", function() {
+ mainContainer.load("jsp/tab_configuration.jsp", function() {
showConfigurationTab();
});
} else {
@@ -342,7 +342,7 @@ $(document).ready(function() {
// Dashboard Tab
function showDashboardTab() {
- mainContainer.load("content/tab_dashboard.html", function() {
+ mainContainer.load("jsp/tab_dashboard.jsp", function() {
$(".header_topright #header_username").text($.cookie("username"));
if (isAdmin()) {