summaryrefslogtreecommitdiff
path: root/mw-config
diff options
context:
space:
mode:
Diffstat (limited to 'mw-config')
-rw-r--r--mw-config/config.css29
-rw-r--r--mw-config/config.js28
-rw-r--r--mw-config/images/help-question-hover.gifbin0 -> 1246 bytes
-rw-r--r--mw-config/images/help-question.gifbin0 -> 126 bytes
-rw-r--r--mw-config/index.php526
5 files changed, 43 insertions, 40 deletions
diff --git a/mw-config/config.css b/mw-config/config.css
index 17b20392..0e0b304c 100644
--- a/mw-config/config.css
+++ b/mw-config/config.css
@@ -172,3 +172,32 @@
overflow: hidden;
min-width: 20em;
}
+
+/* tooltip styles */
+.config-help-field-hint {
+ display: none;
+ margin-left: 2px;
+ margin-bottom: -8px;
+ padding: 0 0 0 15px;
+ /* @embed */
+ background-image: url(images/help-question.gif);
+ background-position: left center;
+ background-repeat: no-repeat;
+ cursor: pointer;
+ font-size: .8em;
+ text-decoration: underline;
+ color: #0645ad;
+}
+
+.config-help-field-hint:hover {
+ /* @embed */
+ background-image: url(images/help-question-hover.gif);
+}
+
+.config-help-field-data {
+ display: block;
+ background-color: #d6f3ff;
+ padding: 5px 8px 4px 8px;
+ border: 1px solid #5dc9f4;
+ margin-left: 20px;
+}
diff --git a/mw-config/config.js b/mw-config/config.js
index cf17aef7..fb637f79 100644
--- a/mw-config/config.js
+++ b/mw-config/config.js
@@ -3,7 +3,7 @@
var $label, labelText;
function syncText() {
- var value = $(this).val()
+ var value = $( this ).val()
.replace( /[\[\]\{\}|#<>%+? ]/g, '_' )
.replace( /&/, '&amp;' )
.replace( /__+/g, '_' )
@@ -14,22 +14,22 @@
}
// Set up the help system
- $( '.mw-help-field-data' )
+ $( '.config-help-field-data' )
.hide()
- .closest( '.mw-help-field-container' )
- .find( '.mw-help-field-hint' )
+ .closest( '.config-help-field-container' )
+ .find( '.config-help-field-hint' )
.show()
.click( function () {
- $(this)
- .closest( '.mw-help-field-container' )
- .find( '.mw-help-field-data' )
+ $( this )
+ .closest( '.config-help-field-container' )
+ .find( '.config-help-field-data' )
.slideToggle( 'fast' );
} );
// Show/hide code for DB-specific options
// FIXME: Do we want slow, fast, or even non-animated (instantaneous) showing/hiding here?
$( '.dbRadio' ).each( function () {
- $( document.getElementById( $(this).attr( 'rel' ) ) ).hide();
+ $( document.getElementById( $( this ).attr( 'rel' ) ) ).hide();
} );
$( document.getElementById( $( '.dbRadio:checked' ).attr( 'rel' ) ) ).show();
$( '.dbRadio' ).click( function () {
@@ -58,16 +58,16 @@
// Show/hide random stuff (email, upload)
$( '.showHideRadio' ).click( function () {
- var $wrapper = $( '#' + $(this).attr( 'rel' ) );
- if ( $(this).is( ':checked' ) ) {
+ var $wrapper = $( '#' + $( this ).attr( 'rel' ) );
+ if ( $( this ).is( ':checked' ) ) {
$wrapper.show( 'slow' );
} else {
$wrapper.hide( 'slow' );
}
} );
$( '.hideShowRadio' ).click( function () {
- var $wrapper = $( '#' + $(this).attr( 'rel' ) );
- if ( $(this).is( ':checked' ) ) {
+ var $wrapper = $( '#' + $( this ).attr( 'rel' ) );
+ if ( $( this ).is( ':checked' ) ) {
$wrapper.hide( 'slow' );
} else {
$wrapper.show( 'slow' );
@@ -80,9 +80,9 @@
// Enable/disable "other" textboxes
$( '.enableForOther' ).click( function () {
- var $textbox = $( document.getElementById( $(this).attr( 'rel' ) ) );
+ var $textbox = $( document.getElementById( $( this ).attr( 'rel' ) ) );
// FIXME: Ugh, this is ugly
- if ( $(this).val() === 'other' ) {
+ if ( $( this ).val() === 'other' ) {
$textbox.removeProp( 'readonly' ).closest( '.config-block' ).slideDown( 'fast' );
} else {
$textbox.prop( 'readonly', true ).closest( '.config-block' ).slideUp( 'fast' );
diff --git a/mw-config/images/help-question-hover.gif b/mw-config/images/help-question-hover.gif
new file mode 100644
index 00000000..515138db
--- /dev/null
+++ b/mw-config/images/help-question-hover.gif
Binary files differ
diff --git a/mw-config/images/help-question.gif b/mw-config/images/help-question.gif
new file mode 100644
index 00000000..b4fc9c5b
--- /dev/null
+++ b/mw-config/images/help-question.gif
Binary files differ
diff --git a/mw-config/index.php5 b/mw-config/index.php5
deleted file mode 100644
index 88986532..00000000
--- a/mw-config/index.php5
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * Version of mw-config/index.php to be used in web servers that require the .php5
- * extension to execute scripts with the PHP5 engine.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
-
-define( 'MW_INSTALL_PHP5_EXT', 1 );
-
-require './index.php';