Browse Source

handle author and title fields

pull/1/head
wes 7 years ago
parent
commit
2bf20c5bb3
  1. 8
      build/scripts/riotblog.min.js
  2. 6
      src/scripts/editor.tag

8
build/scripts/riotblog.min.js

File diff suppressed because one or more lines are too long

6
src/scripts/editor.tag

@ -2,6 +2,8 @@
<div class="centered container">
<div class="columns">
<div class="column col-6">
<input ref="title"></input>
<input ref="author"></input>
<textarea onfocus={clearplaceholder}
onblur={checkplaceholder}
oninput={echo}
@ -71,8 +73,8 @@ var self = this; /* Why do we need this??????????? */
submit() {
var post = self.querystring.stringify({
"title" : "title",
"author" : "name",
"title" : this.refs.title.value,
"author" : this.refs.author.value,
"content" : this.refs.textarea.value
});

Loading…
Cancel
Save