Skip to content
Permalink
Browse files

PT-3678: Improve the look of Diagnosis section after merge with Solve…

…d section

Made final diagnoses suggestions collapsable
  • Loading branch information...
veronikaslc committed May 23, 2018
1 parent 1dcfc6e commit 745a322b73c2de3b7d021a6752ea1532dffc8b14
@@ -4213,7 +4213,7 @@ h1, h2, h3, h4 {
display: table-cell;
vertical-align: middle;
}
.collapsed #diffDiagnosis-search-results > * {
.ncbi-search-box-content.collapsed, .collapsed #diffDiagnosis-search-results > * {
display: none;
}

@@ -38,6 +38,113 @@
<syntaxId>xwiki/2.1</syntaxId>
<hidden>true</hidden>
<content/>
<object>
<name>UIX_Field__omim_suggestions</name>
<number>0</number>
<className>XWiki.JavaScriptExtension</className>
<guid>24d640c0-2469-4e64-97db-3e6d062d6bef</guid>
<class>
<name>XWiki.JavaScriptExtension</name>
<customClass/>
<customMapping/>
<defaultViewSheet/>
<defaultEditSheet/>
<defaultWeb/>
<nameField/>
<validationScript/>
<cache>
<cache>0</cache>
<disabled>0</disabled>
<displayType>select</displayType>
<multiSelect>0</multiSelect>
<name>cache</name>
<number>5</number>
<prettyName>Caching policy</prettyName>
<relationalStorage>0</relationalStorage>
<separator> </separator>
<separators>|, </separators>
<size>1</size>
<unmodifiable>0</unmodifiable>
<values>long|short|default|forbid</values>
<classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
</cache>
<code>
<disabled>0</disabled>
<name>code</name>
<number>2</number>
<prettyName>Code</prettyName>
<rows>20</rows>
<size>50</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
</code>
<name>
<disabled>0</disabled>
<name>name</name>
<number>1</number>
<prettyName>Name</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</name>
<parse>
<disabled>0</disabled>
<displayFormType>select</displayFormType>
<displayType>yesno</displayType>
<name>parse</name>
<number>4</number>
<prettyName>Parse content</prettyName>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</parse>
<use>
<cache>0</cache>
<disabled>0</disabled>
<displayType>select</displayType>
<multiSelect>0</multiSelect>
<name>use</name>
<number>3</number>
<prettyName>Use this extension</prettyName>
<relationalStorage>0</relationalStorage>
<separator> </separator>
<separators>|, </separators>
<size>1</size>
<unmodifiable>0</unmodifiable>
<values>currentPage|onDemand|always</values>
<classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
</use>
</class>
<property>
<cache>long</cache>
</property>
<property>
<code>document.observe('xwiki:dom:loaded', function() {
var sectionContent = $$('.instant-search.omim-search-box .ncbi-search-box-content')[0];
var sectionHeader = $$('.instant-search.omim-search-box h3')[0];
if (!sectionHeader || !sectionContent) { return; }

sectionContent.toggleClassName('collapsed');

var trigger = new Element("span", {'class' : 'expand-tool collapsed'}).update('►');
trigger.observe('click', function(event) {
event.stop();
sectionContent.toggleClassName('collapsed');
trigger.update(sectionContent.hasClassName('collapsed') ? '►' : '▼');
});

sectionHeader.insert({'top' : trigger});
});</code>
</property>
<property>
<name/>
</property>
<property>
<parse>1</parse>
</property>
<property>
<use>onDemand</use>
</property>
</object>
<object>
<name>PhenoTips.UIX_Field__omim_suggestions</name>
<number>0</number>
@@ -111,6 +218,7 @@
<content>{{include reference="PhenoTips.PatientSheetMacros" /}}

{{velocity}}
$xwiki.jsx.use('PhenoTips.UIX_Field__omim_suggestions')##
#if ($xcontext.action == 'export')
#break
#end

0 comments on commit 745a322

Please sign in to comment.
You can’t perform that action at this time.