r92290 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92289‎ | r92290 | r92291 >
Date:19:35, 15 July 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Made links inside templates always look non-visited, non-active and not respond to mouse clicks.
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.css (modified) (history)
  • /trunk/parsers/wikidom/lib/es/es.TextFlow.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.css
@@ -75,11 +75,21 @@
7676 .editSurface-format-object {
7777 background-color: rgba(0,0,0,0.05);
7878 border-radius: 0.25em;
79 - margin: 1px;
 79+ margin: 1px 0 1px 1px;
8080 padding: 0.25em 0;
8181 cursor: default;
8282 }
8383
 84+.editSurface-format-object * {
 85+ cursor: default !important;
 86+}
 87+
 88+.editSurface-format-object a:link,
 89+.editSurface-format-object a:visited,
 90+.editSurface-format-object a:active {
 91+ color: blue;
 92+}
 93+
8494 .editSurface-format-italic {
8595 font-style: italic;
8696 }
Index: trunk/parsers/wikidom/lib/es/es.TextFlow.js
@@ -334,7 +334,14 @@
335335 'word': word,
336336 'fractional': fractional
337337 });
338 - //console.log( start, end, this.lines[this.lines.length - 1].text, this.lines[this.lines.length - 1].fractional );
 338+ // Disable links within content
 339+ $line.find( '.editSurface-format-object a' )
 340+ .mousedown( function( e ) {
 341+ e.preventDefault();
 342+ } )
 343+ .click( function( e ) {
 344+ e.preventDefault();
 345+ } );
339346 };
340347
341348 /**

Status & tagging log