diff options
author | Steve <nilslice@gmail.com> | 2016-12-19 11:19:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-19 11:19:53 -0800 |
commit | 3791fadda7b761ffba38c567da29e2e71acd1dfb (patch) | |
tree | 79d810f9aafa1868ee0760983937470d0eea3db8 /management/editor | |
parent | b20c5bdee38682edc851e646d815a34689c3c923 (diff) |
[addons] Creating foundation for plugin-like system "Addons" (#24)
* adding addons dir and sample addon which enables the use of a new input element in forms for referencing other content. "addons" is a conceptual plugin-like feature, similar to wordpress "plugins" dir, but not as sophisticated
Diffstat (limited to 'management/editor')
-rw-r--r-- | management/editor/editor.go | 6 | ||||
-rw-r--r-- | management/editor/elements.go | 2 |
2 files changed, 0 insertions, 8 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go index 6b55a38..7194c27 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -13,12 +13,6 @@ type Editable interface { MarshalEditor() ([]byte, error) } -// Sortable ensures data is sortable by time -type Sortable interface { - Time() int64 - Touch() int64 -} - // Mergeable allows external post content to be approved and published through // the public-facing API type Mergeable interface { diff --git a/management/editor/elements.go b/management/editor/elements.go index 4a8ae55..bb2cb3f 100644 --- a/management/editor/elements.go +++ b/management/editor/elements.go @@ -242,8 +242,6 @@ func Select(fieldName string, p interface{}, attrs, options map[string]string) [ // find the field value in p to determine if an option is pre-selected fieldVal := valueFromStructField(fieldName, p) - // may need to alloc a buffer, as we will probably loop through options - // and append the []byte from domElement() called for each option attrs["class"] = "browser-default" sel := newElement("select", attrs["label"], fieldName, p, attrs) var opts []*element |