r104415 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104414‎ | r104415 | r104416 >
Date:10:00, 28 November 2011
Author:hashar
Status:ok
Tags:
Comment:
remove old comparator js code

It was replaced by jquery.ucompare()
Modified paths:
  • /trunk/extensions/VipsScaler/modules/ext.vipsScaler/ext.vipsScaler.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VipsScaler/modules/ext.vipsScaler/ext.vipsScaler.js
@@ -22,40 +22,6 @@
2323
2424 var container = document.getElementById( 'mw-vipstest-thumbnails' );
2525 if ( container ) {
26 -/*
27 - $( '<p id="mw-vipstest-buttons">\n' +
28 - '<button id="mw-vipstest-show-both">' +
29 - mediaWiki.message( 'vipsscaler-show-both' ).escaped() +
30 - '</button> ' +
31 - '<button id="mw-vipstest-show-default">' +
32 - mediaWiki.message( 'vipsscaler-show-default' ).escaped() +
33 - '</button> ' +
34 - '<button id="mw-vipstest-show-vips">' +
35 - mediaWiki.message( 'vipsscaler-show-vips' ).escaped() +
36 - '</button> ' +
37 - '</p>'
38 - ).prependTo( container );
39 -*/
40 -/**
41 - $( '#mw-vipstest-show-both' ).click( function() {
42 - document.getElementById( 'mw-vipstest-show-default' ).style.display = 'inline';
43 - document.getElementById( 'mw-vipstest-show-vips' ).style.display = 'inline';
44 - document.getElementById( 'mw-vipstest-default-thumb' ).style.display = 'block';
45 - document.getElementById( 'mw-vipstest-vips-thumb' ).style.display = 'block';
46 - } );
47 - $( '#mw-vipstest-show-default' ).click( function() {
48 - document.getElementById( 'mw-vipstest-show-default' ).style.display = 'none';
49 - document.getElementById( 'mw-vipstest-show-vips' ).style.display = 'inline';
50 - document.getElementById( 'mw-vipstest-default-thumb' ).style.display = 'block';
51 - document.getElementById( 'mw-vipstest-vips-thumb' ).style.display = 'none';
52 - } );
53 - $( '#mw-vipstest-show-vips' ).click( function() {
54 - document.getElementById( 'mw-vipstest-show-default' ).style.display = 'inline';
55 - document.getElementById( 'mw-vipstest-show-vips' ).style.display = 'none';
56 - document.getElementById( 'mw-vipstest-default-thumb' ).style.display = 'none';
57 - document.getElementById( 'mw-vipstest-vips-thumb' ).style.display = 'block';
58 - } );
59 -**/
6026 /**
6127 * options are detailed in upstream documentation available at
6228 * http://www.userdot.net/files/jquery/jquery.ucompare/demo/

Status & tagging log