Index: trunk/extensions/RecordAdmin/recordadmin.js |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | window.raRecordForms = function () { |
3 | 3 | for( i = 0; i < window.forms.length; i++ ) { |
4 | 4 | var type = forms[i]; |
5 | | - var form = document.getElementById( type + '-form' ); |
| 5 | + var form = document.getElementById( type.toLowerCase() + '-form' ); |
6 | 6 | var tags = [ 'input', 'select', 'textarea' ]; |
7 | 7 | for( j = 0; j < tags.length; j++ ) { |
8 | 8 | var inputs = form.getElementsByTagName( tags[j] ); |
— | — | @@ -21,5 +21,4 @@ |
22 | 22 | } |
23 | 23 | } |
24 | 24 | }; |
25 | | - |
26 | 25 | jQuery( '#editform' ).attr( 'onsubmit', 'raRecordForms()' ); |
Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | $values = $this->valuesFromText( $record ); |
98 | 98 | $this->populateForm( $values ); |
99 | 99 | $tabset .= "<fieldset><legend>$type " . strtolower( wfMsg( 'recordadmin-properties' ) ) . "</legend>\n"; |
100 | | - $tabset .= "<form id=\"$type-form\" class=\"$type-record recordadmin\">$this->form</form>\n"; |
| 100 | + $tabset .= "<form id=\"$type-form\" class=\"{$this->formClass}\"{$this->formAtts}>$this->form</form>\n"; |
101 | 101 | $tabset .= "</fieldset>"; |
102 | 102 | } |
103 | 103 | |
Index: trunk/extensions/RecordAdmin/RecordAdmin.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | * @author Siebrand Mazeland |
12 | 12 | * @licence GNU General Public Licence 2.0 or later |
13 | 13 | */ |
14 | | -define( 'RECORDADMIN_VERSION', '1.3.0, 2011-08-03' ); |
| 14 | +define( 'RECORDADMIN_VERSION', '1.3.1, 2011-08-18' ); |
15 | 15 | |
16 | 16 | $wgRecordAdminExtPath = preg_replace( "|^.*(/extensions/.*$)|", "$wgScriptPath$1", dirname( __FILE__ ) ); |
17 | 17 | |