”2016-04-21”

This commit is contained in:
Martin Donnelly 2016-04-21 16:45:00 +01:00
parent a164666468
commit 828c800186
2 changed files with 13 additions and 13 deletions

View File

@ -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);
});
}
}

View File

@ -63,7 +63,7 @@
<div>Link One</div>
<label for="link1title">Text:</label>
{{input id='link1title' placeholder='Text' value=model.link1Text class="form-control"}}
<br/>
<label for="link1url">URL:</label>
{{input id='link1url' placeholder='http://something.com/link' value=model.link1Url class="form-control"}}
</div>
@ -71,7 +71,7 @@
<div>Link Two</div>
<label for="link2title">Text:</label>
{{input id='link2title' placeholder='Text' value=model.link2Text class="form-control"}}
<br/>
<label for="link2url">URL:</label>
{{input id='link2url' placeholder='http://something.com/link' value=model.link2Url class="form-control"}}
</div>
@ -79,7 +79,7 @@
<div>Link Three</div>
<label for="link3title">Text:</label>
{{input id='link3title' placeholder='Text' value=model.link3Text class="form-control"}}
<br/>
<label for="link3url">URL:</label>
{{input id='link3url' placeholder='http://something.com/link' value=model.link3Url class="form-control"}}
</div>
@ -87,7 +87,7 @@
<div>Link Four</div>
<label for="link4title">Text:</label>
{{input id='link4title' placeholder='Text' value=model.link4Text class="form-control"}}
<br/>
<label for="link4url">URL:</label>
{{input id='link4url' placeholder='http://something.com/link' value=model.link4Url class="form-control"}}
</div>