r94080 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94079‎ | r94080 | r94081 >
Date:20:02, 8 August 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Using FormatJSON for renderer demo
Modified paths:
  • /trunk/parsers/wikidom/demos/renderers/index.html (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/demos/renderers/index.html
@@ -57,7 +57,7 @@
5858 <h2>JSON Source</h2>
5959 <div id="json-source" class="source"></div>
6060 <script src="../../lib/jquery.js"></script>
61 - <script src="../../lib/jquery.json.js"></script>
 61+ <script src="../../lib/FormatJSON.js"></script>
6262 <script src="../../lib/wiki.js" type="text/javascript"></script>
6363 <script src="../../lib/wiki.util.js" type="text/javascript"></script>
6464 <script src="../../lib/wiki.AnnotationRenderer.js" type="text/javascript"></script>
@@ -76,7 +76,7 @@
7777 var wikitext = wikitextRenderer.render( data );
7878 $( '#wikitext-source' ).text( wikitext );
7979 // JSON
80 - var json = $.toJSON( data );
 80+ var json = FormatJSON( data );
8181 $( '#json-source' ).text( json );
8282 } );
8383 } );

Status & tagging log