1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-21 05:31:45 +00:00

update design & refresh behavior

This commit is contained in:
Rokt33r
2015-07-17 12:12:47 +09:00
parent 0dde2eb20f
commit 05325e7276
10 changed files with 75 additions and 28 deletions

View File

@@ -36,6 +36,7 @@ var PlanetStore = Reflux.createStore({
}.bind(this))
},
createSnippet: function (planetName, input) {
input.description = input.description.substring(0, 255)
request
.post('http://localhost:8000/' + planetName + '/snippets')
.set({
@@ -51,6 +52,7 @@ var PlanetStore = Reflux.createStore({
}.bind(this))
},
updateSnippet: function (id, input) {
input.description = input.description.substring(0, 255)
request
.put('http://localhost:8000/snippets/id/' + id)
.set({