Commit 75447eb8 by Brian Talbot

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

parent ae4e7815
...@@ -13,6 +13,13 @@ ...@@ -13,6 +13,13 @@
}) })
}); });
(function() {
$('.new-component-template').each(function(){
$emptyEditor = $(this).find('.empty');
$(this).prepend($emptyEditor);
});
})();
function setEditorTab(e) { function setEditorTab(e) {
e.preventDefault(); e.preventDefault();
...@@ -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}">
<span class="name">${name}
% if has_markdown:
MD
% endif
% if is_empty: % if is_empty:
<i>rasa</i> <li class="editor-md empty">
% endif <a href="#" data-location="${location}">
</span> <span class="name">${name}</span>
</a>
</li>
% elif has_markdown:
<li class="editor-md">
<a href="#" data-location="${location}">
<span class="name">${name}</span>
</a> </a>
</li> </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