diff options
Diffstat (limited to 'management/editor')
-rw-r--r-- | management/editor/editor.go | 11 | ||||
-rw-r--r-- | management/editor/elements.go | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go index dc6f181..3b26adb 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -16,6 +16,13 @@ type Editable interface { MarshalEditor() ([]byte, error) } +// Sortable ensures data is sortable by time +type Sortable interface { + Time() int64 + Touch() int64 + ContentID() int +} + // Editor is a view containing fields to manage content type Editor struct { ViewBuf *bytes.Buffer @@ -45,7 +52,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) { editor.ViewBuf.Write([]byte(`<tr class="col s4 default-fields"><td>`)) publishTime := ` -<div class="row"> +<div class="row content-only __ponzu"> <div class="input-field col s6"> <label class="active">MM</label> <select class="month __ponzu browser-default"> @@ -73,7 +80,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) { </div> </div> -<div class="row"> +<div class="row content-only __ponzu"> <div class="input-field col s3"> <label class="active">HH</label> <input value="" class="hour __ponzu" maxlength="2" type="text" placeholder="HH" /> diff --git a/management/editor/elements.go b/management/editor/elements.go index 390d8df..4d829ad 100644 --- a/management/editor/elements.go +++ b/management/editor/elements.go @@ -128,7 +128,6 @@ func File(fieldName string, p interface{}, attrs map[string]string) []byte { store.attr('name', ''); upload.attr('name', '` + name + `'); clip.empty(); - console.log('clicked'); } }); </script>` @@ -198,10 +197,8 @@ func Richtext(fieldName string, p interface{}, attrs map[string]string) []byte { contentType: false, processData: false, success: function(resp) { - console.log(resp); var img = document.createElement('img'); img.setAttribute('src', resp.data[0].url); - console.log(img); _editor.materialnote('insertNode', img); }, error: function(xhr, status, err) { |