From 77084d5ce3003c4b8b14ee61e4429f427b163910 Mon Sep 17 00:00:00 2001 From: Kevin Giszewski Date: Thu, 16 Jan 2014 14:03:39 -0500 Subject: [PATCH] Rename views.js to config.views.js --- Gruntfile.js | 2 +- app/{data/views.js => config/config.views.js} | 0 app/services/propertyeditor.js | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename app/{data/views.js => config/config.views.js} (100%) diff --git a/Gruntfile.js b/Gruntfile.js index 71f74d6..433c63f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -68,7 +68,7 @@ module.exports = function(grunt) { build: { files: [ {expand: true, cwd: 'app/', src: ['package.manifest'], dest: '<%= dest %>', flatten: true}, - {expand: true, cwd: 'app/data', src: ['views.js'], dest: '<%= dest %>/js', flatten: true}, + {expand: true, cwd: 'app/config/', src: ['config.views.js'], dest: '<%= dest %>/js', flatten: true}, {expand: true, cwd: 'app/views/', src: ['archetype.html', 'archetype.config.html'], dest: '<%= dest %>/views', flatten: true} ] }, diff --git a/app/data/views.js b/app/config/config.views.js similarity index 100% rename from app/data/views.js rename to app/config/config.views.js diff --git a/app/services/propertyeditor.js b/app/services/propertyeditor.js index cbec48d..8864cbd 100644 --- a/app/services/propertyeditor.js +++ b/app/services/propertyeditor.js @@ -1,8 +1,8 @@ angular.module('umbraco').factory('propertyEditorService', function($q, $http, umbRequestHelper){ - return { + return { getViews: function() { return umbRequestHelper.resourcePromise( - $http.get("/App_Plugins/Imulus.Archetype/js/views.js"), 'Failed to retreive data for views.' + $http.get("/App_Plugins/Imulus.Archetype/js/config.views.js"), 'Failed to retreive config for views.' ); } };