From d8e2de75544381e1f92389bad0faa060228d9ede Mon Sep 17 00:00:00 2001 From: Darren Jeacocke Date: Wed, 12 Sep 2012 14:19:06 +1000 Subject: Use block strings --- content_scripts/vomnibar.coffee | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'content_scripts') diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee index 4a23b95c..ec444e9e 100644 --- a/content_scripts/vomnibar.coffee +++ b/content_scripts/vomnibar.coffee @@ -138,7 +138,7 @@ class VomnibarUI populateUiWithCompletions: (completions) -> # update completion list with the new data - @completionList.innerHTML = completions.map((completion) -> "
  • " + completion.html + "
  • ").join("") + @completionList.innerHTML = completions.map((completion) -> "
  • #{completion.html}
  • ").join("") @completionList.style.display = if completions.length > 0 then "block" else "none" @updateSelection() @@ -161,12 +161,14 @@ class VomnibarUI initDom: -> @box = Utils.createElementFromHtml( - '
    ' + - '
    ' + - '' + - '
    ' + - '' + - '
    ') + """ +
    +
    + +
    + +
    + """) @box.style.display = "none" document.body.appendChild(@box) -- cgit v1.2.3