merging 9966 to the trunk

This commit is contained in:
tworrall 2012-07-11 16:40:14 +00:00
parent 732617f62f
commit 46d5b47e92
5 changed files with 29 additions and 3 deletions

View file

@ -20,6 +20,11 @@ table.classHierarchy .classDetail {
color:#064D68; color:#064D68;
white-space: nowrap; white-space: nowrap;
} }
td.classDetail {
width:90px;
color:#064D68;
white-space: nowrap;
}
table.subclassTable { table.subclassTable {
margin-left:15px; margin-left:15px;
margin-bottom:4px; margin-bottom:4px;
@ -47,18 +52,22 @@ section#container div span {
span.headerSpanPlus { span.headerSpanPlus {
width: 12px; width: 12px;
background: url(../images/vitro_plus_sign.gif) left center no-repeat; background: url(../images/vitro_plus_sign.gif) left center no-repeat;
cursor:default;
} }
span.headerSpanMinus { span.headerSpanMinus {
width: 12px; width: 12px;
background: url(../images/vitro_minus_sign.gif) left center no-repeat; background: url(../images/vitro_minus_sign.gif) left center no-repeat;
cursor:default;
} }
span.subclassExpandPlus { span.subclassExpandPlus {
padding-right: 14px; padding-right: 14px;
background: url(../images/vitro_plus_sign.gif) left center no-repeat; background: url(../images/vitro_plus_sign.gif) left center no-repeat;
cursor:default;
} }
span.subclassExpandMinus { span.subclassExpandMinus {
padding-right: 14px; padding-right: 14px;
background: url(../images/vitro_minus_sign.gif) left center no-repeat; background: url(../images/vitro_minus_sign.gif) left center no-repeat;
cursor:default;
} }
span#expandAll { span#expandAll {
margin-right: 10px; margin-right: 10px;

View file

@ -81,9 +81,11 @@
}); });
var descendants = ""; var descendants = "";
var headerSpan = ""; var headerSpan = "";
var closingTable = "</table>";
if ( this.children.length ) { if ( this.children.length ) {
descendants = classHierarchyUtils.getTheChildren(this); descendants = classHierarchyUtils.getTheChildren(this);
closingTable = "";
headerSpan = "<span class='headerSpanPlus' id='headerSpan" + classHierarchyUtils.classCounter headerSpan = "<span class='headerSpanPlus' id='headerSpan" + classHierarchyUtils.classCounter
+ "' view='less'>&nbsp;</span>"; + "' view='less'>&nbsp;</span>";
} }
@ -102,10 +104,14 @@
classHierarchyUtils.classHtml += "<tr><td class='classDetail'>Ontology:</td><td>" + this.data.ontology + "</td></tr>"; classHierarchyUtils.classHtml += "<tr><td class='classDetail'>Ontology:</td><td>" + this.data.ontology + "</td></tr>";
if ( descendants.length > 1 ) {
descendants = descendants.substring(0, descendants.length - 10);
}
classHierarchyUtils.classHtml += descendants; classHierarchyUtils.classHtml += descendants;
classHierarchyUtils.classHtml += "</table>"; classHierarchyUtils.classHtml += closingTable;
// alert(classHierarchyUtils.classHtml); // alert(classHierarchyUtils.classHtml);
$newClassSection.html(classHierarchyUtils.classHtml); $newClassSection.html(classHierarchyUtils.classHtml);
$newClassSection.appendTo($('section#container')); $newClassSection.appendTo($('section#container'));
classHierarchyUtils.makeHeaderSpansClickable(classHierarchyUtils.classCounter); classHierarchyUtils.makeHeaderSpansClickable(classHierarchyUtils.classCounter);

View file

@ -126,9 +126,11 @@
}); });
var descendants = ""; var descendants = "";
var headerSpan = ""; var headerSpan = "";
var closingTable = "</table>";
if ( this.children.length ) { if ( this.children.length ) {
descendants = objectPropHierarchyUtils.getTheChildren(this); descendants = objectPropHierarchyUtils.getTheChildren(this);
closingTable = "";
headerSpan = "<span class='headerSpanPlus' id='headerSpan" + objectPropHierarchyUtils.classCounter headerSpan = "<span class='headerSpanPlus' id='headerSpan" + objectPropHierarchyUtils.classCounter
+ "' view='less'>&nbsp;</span>"; + "' view='less'>&nbsp;</span>";
} }
@ -148,10 +150,13 @@
objectPropHierarchyUtils.classHtml += "<span class='rangeClass'>Range Class:</span>" objectPropHierarchyUtils.classHtml += "<span class='rangeClass'>Range Class:</span>"
+ (this.data.rangeVClass.length > 0 ? this.data.rangeVClass : "none" ) + "</td></tr>"; + (this.data.rangeVClass.length > 0 ? this.data.rangeVClass : "none" ) + "</td></tr>";
if ( descendants.length > 1 ) {
descendants = descendants.substring(0, descendants.length - 10);
}
objectPropHierarchyUtils.classHtml += descendants; objectPropHierarchyUtils.classHtml += descendants;
objectPropHierarchyUtils.classHtml += "</table>"; objectPropHierarchyUtils.classHtml += closingTable;
// alert(objectPropHierarchyUtils.classHtml); // alert(objectPropHierarchyUtils.classHtml);
$newClassSection.html(objectPropHierarchyUtils.classHtml); $newClassSection.html(objectPropHierarchyUtils.classHtml);
$newClassSection.appendTo($('section#container')); $newClassSection.appendTo($('section#container'));

View file

@ -1,9 +1,12 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for adding a user account --> <#-- Template for adding a user account -->
<#import "lib-vivo-form.ftl" as lvf>
<h3><a class="account-menu" href="accountsAdmin" title="add new account">User accounts</a> > Add new account</h3> <h3><a class="account-menu" href="accountsAdmin" title="add new account">User accounts</a> > Add new account</h3>
<@lvf.unsupportedBrowser urls.base />
<#if errorEmailIsEmpty??> <#if errorEmailIsEmpty??>
<#assign errorMessage = "You must supply an email address." /> <#assign errorMessage = "You must supply an email address." />
</#if> </#if>

View file

@ -1,9 +1,12 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for editing a user account --> <#-- Template for editing a user account -->
<#import "lib-vivo-form.ftl" as lvf>
<h3><a class="account-menu" href="accountsAdmin" title="edit account">User accounts</a> > Edit account</h3> <h3><a class="account-menu" href="accountsAdmin" title="edit account">User accounts</a> > Edit account</h3>
<@lvf.unsupportedBrowser urls.base />
<#if errorEmailIsEmpty??> <#if errorEmailIsEmpty??>
<#assign errorMessage = "You must supply an email address." /> <#assign errorMessage = "You must supply an email address." />
</#if> </#if>