From 33ea31f1faa50fd326ed8b1b96b25672e61b0dd9 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 17 Mar 2013 19:23:49 +0000 Subject: [PATCH] Show/hide text next to nest display New array item for nestDisplayText Clear this to begin with then set with text if we have a nest, clear otherwise Only show the cursor position item if we have a nest --- lib/ice-coder.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 2622053..fc04f9e 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -35,7 +35,7 @@ var ICEcoder = { // Set our aliases initAliases: function() { - var aliasArray = ["header","files","account","fmLock","filesFrame","editor","tabsBar","findBar","content","footer","nestValid","nestDisplay","charDisplay"]; + var aliasArray = ["header","files","account","fmLock","filesFrame","editor","tabsBar","findBar","content","footer","nestValid","nestDisplayText","nestDisplay","charDisplay"]; // Create our ID aliases for (var i=0;i-1||nestCheck.indexOf("-1)) { + ICEcoder.nestDisplayText.innerHTML = ICEcoder.htmlTagArray.length > 0 ? "Cursor Position" : ""; // Then for all the array items, output as the nest display for (var i=0;i' : '
'; } - if ("undefined" != typeof state.curState) { + if ("undefined" != typeof state.curState && ICEcoder.htmlTagArray.length > 0) { ICEcoder.nestDisplay.innerHTML += ''+(state.curState.tagName ? state.curState.tagName : 'content')+''; } }