Skip to content

Commit

Permalink
Fix an issue preventing loading dashboards from subfolders.
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Nov 13, 2013
1 parent 22040c7 commit 2e7a2d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function (angular, $, kbn, _, config, moment, Modernizr) {

this.file_load = function(file) {
return $http({
url: "app/dashboards/"+file.replace(".(?!json)","/")+'?' + new Date().getTime(),
url: "app/dashboards/"+file.replace(/\.(?!json)/,"/")+'?' + new Date().getTime(),
method: "GET",
transformResponse: function(response) {
return renderTemplate(response,$routeParams);
Expand Down Expand Up @@ -314,7 +314,7 @@ function (angular, $, kbn, _, config, moment, Modernizr) {

this.script_load = function(file) {
return $http({
url: "app/dashboards/"+file.replace(".(?!js)","/"),
url: "app/dashboards/"+file.replace(/\.(?!js)/,"/"),
method: "GET",
transformResponse: function(response) {
/*jshint -W054 */
Expand Down

0 comments on commit 2e7a2d7

Please sign in to comment.