Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -13,11 +13,13 @@ |
14 | 14 | class SFFormUtils { |
15 | 15 | static function setGlobalJSVariables( &$vars ) { |
16 | 16 | global $sfgAutocompleteValues, $sfgAutocompleteOnAllChars; |
| 17 | + global $sfgScriptPath; |
17 | 18 | // global $sfgInitJSFunctions, $sfgValidationJSFunctions; |
18 | 19 | global $sfgShowOnSelect; |
19 | 20 | |
20 | 21 | $vars['sfgRemoveText'] = wfMsg( 'sf_formedit_remove' ); |
21 | 22 | $vars['sfgAutocompleteOnAllChars'] = $sfgAutocompleteOnAllChars; |
| 23 | + $vars['sfgScriptPath'] = $sfgScriptPath; |
22 | 24 | // variables that are associative arrays need to be cast as |
23 | 25 | // objects, to work with MW 1.15 and earlier |
24 | 26 | $vars['sfgAutocompleteValues'] = (object)$sfgAutocompleteValues; |
Index: trunk/extensions/SemanticForms/skins/MW-Icon-AlertMark.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: trunk/extensions/SemanticForms/skins/MW-Icon-AlertMark.png |
___________________________________________________________________ |
Added: svn:mime-type |
25 | 27 | + application/octet-stream |
Index: trunk/extensions/SemanticForms/skins/SemanticForms.css |
— | — | @@ -77,16 +77,16 @@ |
78 | 78 | border: 1px solid #777777; |
79 | 79 | padding: 12px; |
80 | 80 | margin: 25px; |
81 | | - width:auto; |
| 81 | + width: auto; |
82 | 82 | background: #eeeeee; |
83 | 83 | } |
84 | 84 | div.warningMessage { |
85 | | - border: 1px solid #777777; |
86 | | - padding: 12px; |
| 85 | + border: 2px solid red; |
| 86 | + padding: 5px 10px 5px 10px; |
87 | 87 | margin: 25px; |
88 | | - width:auto; |
| 88 | + width: auto; |
89 | 89 | font-weight: bold; |
90 | | - color: red; |
| 90 | + color: black; |
91 | 91 | } |
92 | 92 | span.errorMessage { |
93 | 93 | color: red; |
Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -605,7 +605,7 @@ |
606 | 606 | if (num_errors > 0) { |
607 | 607 | // add error header, if it's not there already |
608 | 608 | if (jQuery("#form_error_header").size() == 0) { |
609 | | - jQuery("#contentSub").append('<div id="form_error_header" class="warningMessage" style="font-size: medium">' + sfgFormErrorsHeader + '</div>'); |
| 609 | + jQuery("#contentSub").append('<div id="form_error_header" class="warningMessage" style="font-size: medium"><img src="' + sfgScriptPath + '/skins/MW-Icon-AlertMark.png" />' + sfgFormErrorsHeader + '</div>'); |
610 | 610 | } |
611 | 611 | scroll(0, 0); |
612 | 612 | } else { |