From 828c800186328ef5ea60c2289a5d7bb944340b12 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Thu, 21 Apr 2016 16:45:00 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9D2016-04-21=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/pages.js | 18 +++++++++--------- app/templates/pages.hbs | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/controllers/pages.js b/app/controllers/pages.js index 514fe01..aff7207 100644 --- a/app/controllers/pages.js +++ b/app/controllers/pages.js @@ -63,15 +63,15 @@ export default Ember.Controller.extend({ 'use strict'; console.log('Delete: ', id); var store = this.get('store'); - console.log(id); - var deletePage = this.store.peekRecord('page', id); - deletePage.destroyRecord() - .then(function(d) { - console.log(d); - }) - .catch(function(e) { - console.error(e); - }); + console.log(id); + var deletePage = this.store.peekRecord('page', id); + deletePage.destroyRecord() + .then(function(d) { + console.log(d); + }) + .catch(function(e) { + console.error(e); + }); } } diff --git a/app/templates/pages.hbs b/app/templates/pages.hbs index 61839c5..84aca6a 100644 --- a/app/templates/pages.hbs +++ b/app/templates/pages.hbs @@ -63,7 +63,7 @@
Link One
{{input id='link1title' placeholder='Text' value=model.link1Text class="form-control"}} - +
{{input id='link1url' placeholder='http://something.com/link' value=model.link1Url class="form-control"}} @@ -71,7 +71,7 @@
Link Two
{{input id='link2title' placeholder='Text' value=model.link2Text class="form-control"}} - +
{{input id='link2url' placeholder='http://something.com/link' value=model.link2Url class="form-control"}} @@ -79,7 +79,7 @@
Link Three
{{input id='link3title' placeholder='Text' value=model.link3Text class="form-control"}} - +
{{input id='link3url' placeholder='http://something.com/link' value=model.link3Url class="form-control"}} @@ -87,7 +87,7 @@
Link Four
{{input id='link4title' placeholder='Text' value=model.link4Text class="form-control"}} - +
{{input id='link4url' placeholder='http://something.com/link' value=model.link4Url class="form-control"}}