aboutsummaryrefslogtreecommitdiffstats
path: root/pages/options.coffee
diff options
context:
space:
mode:
authorStephen Blott2014-12-21 16:07:29 +0000
committerStephen Blott2014-12-21 16:07:29 +0000
commit6f755c4cf456be3671936bd195bf56cf02f3e75f (patch)
tree510266fd8f90f61a46d82ec119f24652037a5e25 /pages/options.coffee
parent3aeb8517d0dd5f9a530e99db662a4945132cf436 (diff)
downloadvimium-6f755c4cf456be3671936bd195bf56cf02f3e75f.tar.bz2
Exclusion; move exclusion HTML to separate, shared page.
Diffstat (limited to 'pages/options.coffee')
-rw-r--r--pages/options.coffee13
1 files changed, 10 insertions, 3 deletions
diff --git a/pages/options.coffee b/pages/options.coffee
index def67fd7..abbf52c6 100644
--- a/pages/options.coffee
+++ b/pages/options.coffee
@@ -294,7 +294,14 @@ initPopupPage = ->
#
# Initialization.
document.addEventListener "DOMContentLoaded", ->
- switch location.pathname
- when "/pages/options.html" then initOptionsPage()
- when "/pages/popup.html" then initPopupPage()
+ xhr = new XMLHttpRequest()
+ xhr.open 'GET', chrome.extension.getURL('pages/exclusions.html'), true
+ xhr.onreadystatechange = ->
+ if xhr.readyState == 4
+ $("exclusionScrollBox").innerHTML = xhr.responseText
+ switch location.pathname
+ when "/pages/options.html" then initOptionsPage()
+ when "/pages/popup.html" then initPopupPage()
+
+ xhr.send()