Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php |
— | — | @@ -182,7 +182,7 @@ |
183 | 183 | foreach ( $property_values as $i => $property_value ) { |
184 | 184 | |
185 | 185 | $result .= Html::openElement( 'div', array( 'id' => "sort_div_$i" ) ); |
186 | | - $result .= '<span class="smw-remove"> <a href="javascript:removePOInstance(\'sort_div_' . $i . '\')"> </a></span>'; |
| 186 | + $result .= '<span class="smw-remove"><a href="javascript:removePOInstance(\'sort_div_' . $i . '\')"><img src="'.$smwgScriptPath.'/skins/images/close-button.png" alt="'. wfMsg('smw_qui_delete').'"></a></span>'; |
187 | 187 | $result .= wfMsg( 'smw_qui_property' ); |
188 | 188 | $result .= Html::input( 'property[' . $i . ']', $property_value, 'text', array( 'size' => '35' ) ) . "\n"; |
189 | 189 | $result .= Html::openElement( 'select', array( 'name' => "order[$i]" ) ); |
— | — | @@ -206,8 +206,8 @@ |
207 | 207 | // END: create form elements already submitted earlier via form |
208 | 208 | |
209 | 209 | // create hidden form elements to be cloned later |
210 | | - $hidden = Html::openElement( 'div', array( 'id' => 'sorting_starter', 'style' => 'display:none' ) ) . |
211 | | - '<span class="smw-remove"><a> </a></span>' . |
| 210 | + $hidden = Html::openElement( 'div', array( 'id' => 'sorting_starter', 'class'=>'smw-sort', 'style' => 'display:none' ) ) . |
| 211 | + '<span class="smw-remove"><a><img src="'.$smwgScriptPath.'/skins/images/close-button.png" alt="'. wfMsg('smw_qui_delete').'"></a></span>' . |
212 | 212 | wfMsg( 'smw_qui_property' ) . |
213 | 213 | Xml::input( "property_num", '35' ) . " "; |
214 | 214 | |
— | — | @@ -304,7 +304,6 @@ |
305 | 305 | //Create the new instance |
306 | 306 | var new_div = starter_div.cloneNode(true); |
307 | 307 | var div_id = 'sort_div_' + num_elements; |
308 | | - new_div.className = 'multipleTemplate'; |
309 | 308 | new_div.id = div_id; |
310 | 309 | new_div.style.display = 'block'; |
311 | 310 | |
Index: trunk/extensions/SemanticMediaWiki/skins/SMW_custom.css |
— | — | @@ -131,13 +131,16 @@ |
132 | 132 | } |
133 | 133 | |
134 | 134 | /* ui buttons for QueryUI */ |
135 | | -span.smw-remove a{ |
136 | | - background: url(images/close-button.png) center no-repeat; |
137 | | - height: 16px; |
138 | | - width: 16px; |
| 135 | +.smw-sort input, .smw-sort a, .smw-sort select, .smw-sort checkbox{ |
| 136 | + margin-left: 5px; |
| 137 | +} |
| 138 | +span.smw-remove a img{ |
139 | 139 | text-decoration: none; |
| 140 | + margin-right: 5px; |
| 141 | + vertical-align: -3px; |
140 | 142 | } |
141 | 143 | |
| 144 | + |
142 | 145 | /* search, browse, RDF icons */ |
143 | 146 | |
144 | 147 | span.smwsearchicon { /*FIXME: this was only used for Factbox docu, should be removed from code*/ |