From 40a95bedb7aba4fd279b1fe2b77b2adb7f7e6a15 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Thu, 7 Nov 2013 14:25:24 -0700 Subject: [PATCH] Tweaked pulldown editor path --- src/app/controllers/dash.js | 13 +++++++++++-- src/app/partials/dasheditor.html | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/app/controllers/dash.js b/src/app/controllers/dash.js index 1bb2bd72043..8a29a01355d 100644 --- a/src/app/controllers/dash.js +++ b/src/app/controllers/dash.js @@ -68,9 +68,18 @@ function (angular, config, _) { return { 'min-height': row.collapse ? '5px' : row.height }; }; - $scope.edit_path = function(type) { + $scope.panel_path =function(type) { if(type) { - return 'app/panels/'+type.replace(".","/")+'/editor.html'; + return 'app/panels/'+type.replace(".","/"); + } else { + return false; + } + }; + + $scope.edit_path = function(type) { + var p = $scope.panel_path(type); + if(p) { + return p+'/editor.html'; } else { return false; } diff --git a/src/app/partials/dasheditor.html b/src/app/partials/dasheditor.html index e66c3640b1a..07aed9e20a0 100644 --- a/src/app/partials/dasheditor.html +++ b/src/app/partials/dasheditor.html @@ -159,7 +159,7 @@
- +