Skip to content
Snippets Groups Projects
Verified Commit 3a50f869 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

DOC: add deprecated warning for css class .caosdb-property-text-value

parent 5146570c
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated (for soon-to-be removed features)
* css class `caosdb-property-text-value` is deprecated because different
functionality interpreted it differently and most of the uses of this class
have already been removed and replaced by specialized classes.
### Removed (for now removed features)
### Fixed
......
......@@ -49,6 +49,9 @@ body {
display: initial;
}
/* DEPRECATED css class .caosdb-property-text-value - Use
* .caosdb-f-property-single-raw-value or introduce new
* .caosdb-v-property-text-value */
.caosdb-property-text-value {
white-space: pre-line;
}
......
......@@ -631,6 +631,9 @@ function setPropertySafe(valueelement, property, propold) {
preview.init();
}
} else {
/* DEPRECATED css class .caosdb-property-text-value - Use
* .caosdb-f-property-single-raw-value or introduce new
* .caosdb-v-property-text-value */
valueelement.innerHTML = "<span class='caosdb-property-text-value'>" + property.value + "</span>";
}
}
......
......@@ -4,6 +4,9 @@ var cosmetics = new function() {
}
this.linkify = function() {
/* DEPRECATED css class .caosdb-property-text-value - Use
* .caosdb-f-property-single-raw-value or introduce new
* .caosdb-v-property-text-value */
$('.caosdb-property-text-value').each(function(index) {
if (/^https?:\/\//.test(this.innerText)) {
var uri = this.innerText;
......@@ -20,4 +23,4 @@ var cosmetics = new function() {
$(document).ready(function() {
cosmetics.init();
});
\ No newline at end of file
});
......@@ -285,6 +285,9 @@
<xsl:otherwise>
<xsl:element name="span">
<xsl:attribute name="class">
<!-- DEPRECATED css class .caosdb-property-text-value - Use
.caosdb-f-property-single-raw-value or introduce new
.caosdb-v-property-text-value -->
<xsl:value-of select="'caosdb-f-property-single-raw-value caosdb-property-text-value'"/>
</xsl:attribute>
<xsl:call-template name="trim">
......@@ -297,6 +300,9 @@
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<!-- DEPRECATED css class .caosdb-property-text-value - Use
.caosdb-f-property-single-raw-value or introduce new
.caosdb-v-property-text-value -->
<span class="caosdb-f-property-single-raw-value caosdb-property-text-value"/>
</xsl:otherwise>
</xsl:choose>
......
<div class="caosdb-f-form-wrapper">
<!-- DEPRECATED css class .caosdb-property-text-value - Use
.caosdb-f-property-single-raw-value or introduce new
.caosdb-v-property-text-value -->
<form action="#" class="form-horizontal" method="post" name="sample_creation.py">
<div class="form-group caosdb-f-field caosdb-f-entity-property caosdb-f-form-field-required caosdb-f-form-field-cached" data-field-name="ice_core" data-groups="(part1)">
<label class="control-label col-sm-3" data-property-name="ice_core" for="ice_core">Ice Core</label>
......
......@@ -162,6 +162,9 @@ QUnit.test("LIST Property", function(assert) {
});
QUnit.test("single-value template with reference property.", function(assert) {
/* DEPRECATED css class .caosdb-property-text-value - Use
* .caosdb-f-property-single-raw-value or introduce new
* .caosdb-v-property-text-value */
assert.equal(xml2str(callTemplate(this.entityXSL, 'single-value', {
'value': '',
'reference': 'true',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment