aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2013-12-28 11:35:41 +0100
committerWojciech Polak <polak@gnu.org>2013-12-28 11:35:41 +0100
commita5cc6e30ec0f31e64769c317b368f51d9d4ab808 (patch)
tree2b99eadaf3f4e6931b173c0515cdaa103aed0a9a
parent147aab616e8a2f9995817bc1ec6941800b5b3a6e (diff)
downloadcheetah-a5cc6e30ec0f31e64769c317b368f51d9d4ab808.tar.gz
cheetah-a5cc6e30ec0f31e64769c317b368f51d9d4ab808.tar.bz2
Remove Translate link.
-rw-r--r--js/v2/core.js12
-rw-r--r--xslt/v2/feed.xsl25
2 files changed, 1 insertions, 36 deletions
diff --git a/js/v2/core.js b/js/v2/core.js
index 6699474..cef5769 100644
--- a/js/v2/core.js
+++ b/js/v2/core.js
@@ -628,17 +628,13 @@ function transformJsonFeed (json, feedid, latest, expand) {
String.fromCharCode (160)),
DCE ('span', {eid:entryId, className:'linkShare',
href:entry.link, desc:entry.title}),
document.createTextNode (String.fromCharCode (160) +
String.fromCharCode (160) +
String.fromCharCode (160)),
- linkSave,
- document.createTextNode (String.fromCharCode (160) +
- String.fromCharCode (160) +
- String.fromCharCode (160)),
- DCE ('span', {eid:entryId, className:'linkTranslate'})])]);
+ linkSave])]);
if (i >= expand) body.style.display = 'none';
bWindowContent.appendChild (DCE ('div', {id:'entry_'+entryId, entrylang:'en'},
[DCE ('div', {className:'entryTitle'},
[DCE ('span', {className:'entryLink', id:'el_'+entryId},
[entry.title.stripTags ()]),
@@ -1235,18 +1231,12 @@ function prepareEntry (n, feedid) {
else if (n.className == 'linkSave') {
if (Modules.Notes)
Modules.Notes.attach (n);
else
n.parentNode.removeChild (n);
}
- else if (n.className == 'linkTranslate') {
- if (Modules.Translate)
- Modules.Translate.attach (n);
- else
- n.parentNode.removeChild (n);
- }
else if (n.className == 'emax') {
n.id = 'emax_' + feedid;
n.style.marginLeft = '1em';
var count = parseInt (n.getAttribute ('count'));
var crcnt = feedid != 0 ? parseInt (cheetahData.feeds[feedid][2]) : 10;
var el = document.createElement ('SELECT');
diff --git a/xslt/v2/feed.xsl b/xslt/v2/feed.xsl
index f6f67bd..300d1f9 100644
--- a/xslt/v2/feed.xsl
+++ b/xslt/v2/feed.xsl
@@ -391,17 +391,12 @@
<xsl:attribute name="desc">
<xsl:value-of select="title"/>
</xsl:attribute>
</span>
<xsl:text disable-output-escaping="yes">&amp;nbsp;&amp;nbsp;&amp;nbsp;</xsl:text>
</xsl:if>
- <span class="linkTranslate">
- <xsl:attribute name="eid">
- <xsl:value-of select="$eid"/>
- </xsl:attribute>
- </span>
</div>
</div>
</div>
</xsl:template>
<xsl:template match="rss10:item">
@@ -518,17 +513,12 @@
<xsl:attribute name="desc">
<xsl:value-of select="rss10:title"/>
</xsl:attribute>
</span>
<xsl:text disable-output-escaping="yes">&amp;nbsp;&amp;nbsp;&amp;nbsp;</xsl:text>
</xsl:if>
- <span class="linkTranslate">
- <xsl:attribute name="eid">
- <xsl:value-of select="$eid"/>
- </xsl:attribute>
- </span>
</div>
</div>
</div>
</xsl:template>
<xsl:template match="rdf09:item">
@@ -616,17 +606,12 @@
<xsl:attribute name="desc">
<xsl:value-of select="rdf09:title"/>
</xsl:attribute>
</span>
<xsl:text disable-output-escaping="yes">&amp;nbsp;&amp;nbsp;&amp;nbsp;</xsl:text>
</xsl:if>
- <span class="linkTranslate">
- <xsl:attribute name="eid">
- <xsl:value-of select="$eid"/>
- </xsl:attribute>
- </span>
</div>
</div>
</div>
</xsl:template>
<xsl:template match="atom:entry|atomW3:entry">
@@ -786,17 +771,12 @@
<xsl:attribute name="desc">
<xsl:value-of select="atom:title|atomW3:title"/>
</xsl:attribute>
</span>
<xsl:text disable-output-escaping="yes">&amp;nbsp;&amp;nbsp;&amp;nbsp;</xsl:text>
</xsl:if>
- <span class="linkTranslate">
- <xsl:attribute name="eid">
- <xsl:value-of select="$eid"/>
- </xsl:attribute>
- </span>
</div>
</div>
</div>
</xsl:template>
<xsl:template match="atomW3:entry" mode="twitter">
@@ -877,17 +857,12 @@
<xsl:attribute name="desc">
<xsl:apply-templates select="atomW3:link"/>
</xsl:attribute>
</span>
<xsl:text disable-output-escaping="yes">&amp;nbsp;&amp;nbsp;&amp;nbsp;</xsl:text>
</xsl:if>
- <span class="linkTranslate">
- <xsl:attribute name="eid">
- <xsl:value-of select="$eid"/>
- </xsl:attribute>
- </span>
</div>
</div>
<div style="clear:both"></div>
</div>
</xsl:template>

Return to:

Send suggestions and report system problems to the System administrator.