Displaying expando glyphs in STW model browsing

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2011-03-23 08:49:07 -07:00
parent cf7aaecd92
commit 04e9751725
2 changed files with 23 additions and 2 deletions

View File

@@ -265,10 +265,10 @@
// add the expand/collapse logic to the shape model
// var glyph = $('<span class="expando-glyph-container closed"><span class="expando-glyph"></span>&#8203;</span>');
shapeTracingWindowContent.find('h3').parent(':has(li)').prepend(glyph);
shapeTracingWindowContent.find('.model li:has(ul)').prepend(glyph);
// collapse all sub uls
shapeTracingWindowContent.find('ul ul').toggle(false);
shapeTracingWindowContent.find('.model ul ul').toggle(false);
// tabs events
shapeTracingWindowContent.find('.shape-tracing-tabs > li').click(function () {

View File

@@ -221,4 +221,25 @@
}
#shape-tracing-window-content .shape-tracing-tabs li.selected a {
color: #3A822E;
}
#shape-tracing-window-content .model ul ul {
margin:0 0 0 18px;
padding:0 0 0 10px;
list-style-type:none;
}
#shape-tracing-window-content .model div {
float:left;
display:block;
}
#shape-tracing-window-content .model div.type, #shape-tracing-window-content .model div.value {
left:300px;
position:relative;
}
#shape-tracing-window-content .model li {
clear:both;
}