Skip to content

Commit

Permalink
removed obsolete references to 'JSnocheck' class
Browse files Browse the repository at this point in the history
  • Loading branch information
selfthinker committed Jan 3, 2011
1 parent 4c36bf8 commit be96545
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions _test/cases/inc/parser/xhtml_links.test.php
Expand Up @@ -12,7 +12,7 @@ function test_emaillink(){
$p = new Doku_Renderer_xhtml();
$p->emaillink('foo@example.com','<script>alert(\'"alert"\');</script>');

$expect = '<a href="mailto:foo%20%5Bat%5D%20example%20%5Bdot%5D%20com" class="mail JSnocheck" title="foo [at] example [dot] com">&lt;script&gt;alert(&#039;&quot;alert&quot;&#039;);&lt;/script&gt;</a>';
$expect = '<a href="mailto:foo%20%5Bat%5D%20example%20%5Bdot%5D%20com" class="mail" title="foo [at] example [dot] com">&lt;script&gt;alert(&#039;&quot;alert&quot;&#039;);&lt;/script&gt;</a>';

$this->assertEqual($p->doc,$expect);
}
Expand All @@ -36,7 +36,7 @@ function test_emaillink_with_media(){
$p = new Doku_Renderer_xhtml();
$p->emaillink('foo@example.com',$image);

$expect = '<a href="mailto:foo%20%5Bat%5D%20example%20%5Bdot%5D%20com" class="media JSnocheck" title="foo [at] example [dot] com"><img src="'.DOKU_BASE.'lib/exe/fetch.php/img.gif?w=10&amp;h=20&amp;cache=nocache" class="media" title="Some Image" alt="Some Image" width="10" height="20" /></a>';
$expect = '<a href="mailto:foo%20%5Bat%5D%20example%20%5Bdot%5D%20com" class="media" title="foo [at] example [dot] com"><img src="'.DOKU_BASE.'lib/exe/fetch.php/img.gif?w=10&amp;h=20&amp;cache=nocache" class="media" title="Some Image" alt="Some Image" width="10" height="20" /></a>';

$this->assertEqual($p->doc,$expect);
}
Expand Down
4 changes: 2 additions & 2 deletions inc/parser/xhtml.php
Expand Up @@ -734,9 +734,9 @@ function emaillink($address, $name = NULL) {

$name = $this->_getLinkTitle($name, '', $isImage);
if ( !$isImage ) {
$link['class']='mail JSnocheck';
$link['class']='mail';
} else {
$link['class']='media JSnocheck';
$link['class']='media';
}

$address = $this->_xmlEntities($address);
Expand Down
3 changes: 1 addition & 2 deletions lib/tpl/default/rtl.css
Expand Up @@ -55,8 +55,7 @@ div.dokuwiki li ol {
div.dokuwiki a.urlextern,
div.dokuwiki a.interwiki,
div.dokuwiki a.windows,
div.dokuwiki a.mail,
div.dokuwiki a.mail.JSnocheck {
div.dokuwiki a.mail {
/* should work but doesn't - so we just disable icons here*/
/*
background-position: right 1px;
Expand Down

0 comments on commit be96545

Please sign in to comment.