From 5d8ddc9b57ec6cc0f436270619e4657a6dc34a66 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 13 Mar 2015 06:00:23 -0400 Subject: [PATCH] feature(config) add editor --- html/config.html | 1 + lib/client/config.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/html/config.html b/html/config.html index 024b8f8e..4fb5d37b 100644 --- a/html/config.html +++ b/html/config.html @@ -4,6 +4,7 @@
  • +
  • diff --git a/lib/client/config.js b/lib/client/config.js index f18899ff..2f6ee94e 100644 --- a/lib/client/config.js +++ b/lib/client/config.js @@ -105,6 +105,10 @@ var CloudCmd, Util, DOM, io; CONFIG = config; obj = Util.copyObj(CONFIG); changeConfig(obj); + + obj[obj.editor + '-selected'] = 'selected'; + delete obj.editor; + data = Util.render(Template, obj); div = DOM.load({ name : 'div', @@ -117,7 +121,7 @@ var CloudCmd, Util, DOM, io; Element = div; - inputs = DOM.getByTag(INPUT, div); + inputs = document.querySelectorAll('input, select', div); inputFirst = inputs[0]; if (inputFirst) {