Commit ecbd9f7a authored by Randall Leeds's avatar Randall Leeds

yank editor controls into meta - HACK HACK

parent cdac8d88
......@@ -130,10 +130,12 @@ class Hypothesis extends Annotator
showEditor: (annotation) =>
if @plugins.Permissions?.user
@editor.load(annotation)
controls = @editor.element.find('.annotator-controls')
@editor.element.find('.annotator-listing').replaceWith(
Handlebars.templates['editor'](annotation)
)
@editor.load(annotation)
controls.detach().appendTo(@editor.element.find('.hyp-meta'))
$(document.documentElement).addClass('hyp-collapse')
@sidebar.removeClass('collapse')
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment