Commit 75447eb8 by Brian Talbot

studio - problem speed editor: revised html and DOM for problem sub menu

parent ae4e7815
...@@ -12,8 +12,15 @@ ...@@ -12,8 +12,15 @@
state: '${unit_state}' state: '${unit_state}'
}) })
}); });
(function() {
$('.new-component-template').each(function(){
$emptyEditor = $(this).find('.empty');
$(this).prepend($emptyEditor);
});
})();
function setEditorTab(e) { function setEditorTab(e) {
e.preventDefault(); e.preventDefault();
$('.editor-tabs .current').removeClass('current'); $('.editor-tabs .current').removeClass('current');
...@@ -153,18 +160,29 @@ ...@@ -153,18 +160,29 @@
<div class="new-component-templates new-component-${type}"> <div class="new-component-templates new-component-${type}">
<ul class="new-component-template"> <ul class="new-component-template">
% for name, location, has_markdown, is_empty in templates: % for name, location, has_markdown, is_empty in templates:
<li>
<a href="#" data-location="${location}"> % if is_empty:
<span class="name">${name} <li class="editor-md empty">
% if has_markdown: <a href="#" data-location="${location}">
MD <span class="name">${name}</span>
% endif </a>
% if is_empty: </li>
<i>rasa</i>
% endif % elif has_markdown:
</span> <li class="editor-md">
</a> <a href="#" data-location="${location}">
</li> <span class="name">${name}</span>
</a>
</li>
% else:
<li class="editor-manual">
<a href="#" data-location="${location}">
<span class="name">${name}</span>
</a>
</li>
% endif
%endfor %endfor
</ul> </ul>
<a href="#" class="cancel-button">Cancel</a> <a href="#" class="cancel-button">Cancel</a>
......
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