From 444bb40649a797f6b604dc238574f26755688e89 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Fri, 8 Nov 2013 07:33:35 -0700 Subject: [PATCH] closes #675 --- src/app/services/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/dashboard.js b/src/app/services/dashboard.js index a4c1b1e3d5d..f86bf04805b 100644 --- a/src/app/services/dashboard.js +++ b/src/app/services/dashboard.js @@ -274,7 +274,7 @@ function (angular, $, kbn, _, config, moment, Modernizr) { this.file_load = function(file) { return $http({ - url: "app/dashboards/"+file.replace(".","/")+'?' + new Date().getTime(), + url: "app/dashboards/"+file.replace(".(?!json)","/")+'?' + new Date().getTime(), method: "GET", transformResponse: function(response) { return renderTemplate(response,$routeParams); @@ -314,7 +314,7 @@ function (angular, $, kbn, _, config, moment, Modernizr) { this.script_load = function(file) { return $http({ - url: "app/dashboards/"+file.replace(".","/"), + url: "app/dashboards/"+file.replace(".(?!js)","/"), method: "GET", transformResponse: function(response) { /*jshint -W054 */