~ubuntu-branches/ubuntu/maverick/mediawiki/maverick

« back to all changes in this revision

Viewing changes to skins/common/block.js

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2009-06-19 01:38:50 UTC
  • mfrom: (16.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090619013850-dsn4lrxvs90ab4rx
Tags: 1:1.15.0-1
* New upstream release. 
* Upstream added support for OASIS documents.
Closes: #530328
* Refreshed quilt patches
* Bumped standards versions to 3.8.2
* Bumped compat to 7
* Pointed to GPL-2 in debian/copyright
* Added php5-sqlite to possible DB backend dependencies.
Closes: #501569
* Proofread README.Debian, upgrade is documented there.
Closes: #520121

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        var addy = target.value;
32
32
        var isEmpty = addy.match(/^\s*$/);
33
33
        var isIp = addy.match(/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|:(:[0-9A-Fa-f]{1,4}){1,7}|[0-9A-Fa-f]{1,4}(:{1,2}[0-9A-Fa-f]{1,4}|::$){1,7})(\/\d+)?$/);
 
34
        var isIpRange = isIp && addy.match(/\/\d+$/);
34
35
 
35
36
        var anonymousRow = document.getElementById('wpAnonOnlyRow');
36
37
        if( anonymousRow ) {
51
52
        if( hideuserRow ) {
52
53
                hideuserRow.style.display = isIp && !isEmpty ? 'none' : '';
53
54
        }
 
55
 
 
56
        var watchuserRow = document.getElementById('wpEnableWatchUser');
 
57
        if( watchuserRow ) {
 
58
                watchuserRow.style.display = isIpRange && !isEmpty ? 'none' : '';
 
59
        }
54
60
}