Skip to content

Commit

Permalink
closes #675
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Nov 8, 2013
1 parent 40a95be commit 444bb40
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(".","/")+'?' + 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(".","/"),
url: "app/dashboards/"+file.replace(".(?!js)","/"),
method: "GET",
transformResponse: function(response) {
/*jshint -W054 */
Expand Down

0 comments on commit 444bb40

Please sign in to comment.