Index: trunk/extensions/EducationProgram/EducationProgram.php |
— | — | @@ -324,6 +324,7 @@ |
325 | 325 | 'ep-pager-confirm-message-course', |
326 | 326 | 'ep-pager-confirm-message-course-many', |
327 | 327 | 'ep-pager-retry-button-course', |
| 328 | + 'ep-pager-summary-message-course', |
328 | 329 | ), |
329 | 330 | 'dependencies' => array( |
330 | 331 | 'ep.pager', |
— | — | @@ -338,6 +339,7 @@ |
339 | 340 | 'ep-pager-confirm-message-org', |
340 | 341 | 'ep-pager-confirm-message-org-many', |
341 | 342 | 'ep-pager-retry-button-org', |
| 343 | + 'ep-pager-summary-message-org', |
342 | 344 | ), |
343 | 345 | 'dependencies' => array( |
344 | 346 | 'ep.pager', |
Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php |
— | — | @@ -211,6 +211,7 @@ |
212 | 212 | 'ep-pager-delete-button-org' => 'Remove {{PLURAL:$1|institution|institutions}}', |
213 | 213 | 'ep-pager-confirm-delete-org' => '{{PLURAL:$1|Confirm institution removal|Confirm removal of multiple institutions}}', |
214 | 214 | 'ep-pager-retry-button-org' => 'Retry', |
| 215 | + 'ep-pager-summary-message-org' => 'Summary:', |
215 | 216 | // Yeah we need two of these - having a jQuery node in PLURAL breaks, at least at r110788. |
216 | 217 | 'ep-pager-confirm-message-org' => 'You are about to remove institution $1. This will remove all associated courses and their student data!', |
217 | 218 | 'ep-pager-confirm-message-org-many' => 'You are about to remove these institutions: $1. This will remove all associated courses and their student data!', |
— | — | @@ -233,6 +234,7 @@ |
234 | 235 | 'ep-pager-delete-button-course' => 'Remove {{PLURAL:$1|course|courses}}', |
235 | 236 | 'ep-pager-confirm-delete-course' => '{{PLURAL:$1|Confirm course removal|Confirm removal of multiple courses}}', |
236 | 237 | 'ep-pager-retry-button-course' => 'Retry', |
| 238 | + 'ep-pager-summary-message-course' => 'Summary:', |
237 | 239 | // Yeah we need two of these - having a jQuery node in PLURAL breaks, at least at r110788. |
238 | 240 | 'ep-pager-confirm-message-course' => 'You are about to remove course $1. This will remove all associated student data!', |
239 | 241 | 'ep-pager-confirm-message-course-many' => 'You are about to remove these courses: $1. This will remove all associated student data!', |
Index: trunk/extensions/EducationProgram/resources/ep.pager.js |
— | — | @@ -67,6 +67,28 @@ |
68 | 68 | args.names.length |
69 | 69 | ); |
70 | 70 | |
| 71 | + var summaryLabel = $( '<label>' ).attr( { |
| 72 | + 'for': 'epsummaryinput' |
| 73 | + } ).msg( 'ep-pager-summary-message-' + args.type ).append( ' ' ); |
| 74 | + |
| 75 | + var summaryInput = $( '<input>' ).attr( { |
| 76 | + 'type': 'text', |
| 77 | + 'size': 60, |
| 78 | + 'maxlength': 250, |
| 79 | + 'id': 'epsummaryinput' |
| 80 | + } ); |
| 81 | + |
| 82 | + $dialog.append( '<br /><br />', summaryLabel, summaryInput ); |
| 83 | + |
| 84 | + summaryInput.keypress( function( event ) { |
| 85 | + if ( event.which == '13' ) { |
| 86 | + event.preventDefault(); |
| 87 | + onConfirm(); |
| 88 | + } |
| 89 | + } ); |
| 90 | + |
| 91 | + summaryInput.focus(); |
| 92 | + |
71 | 93 | return deferred.promise(); |
72 | 94 | }; |
73 | 95 | |
— | — | @@ -161,8 +183,8 @@ |
162 | 184 | alert( window.gM( 'ep-pager-delete-selected-fail', ids.length ) ); |
163 | 185 | } ); |
164 | 186 | } ); |
165 | | - } ); |
166 | | - |
| 187 | + } |
| 188 | + ); |
167 | 189 | } ); |
168 | 190 | |
169 | 191 | })( window.jQuery, window.mediaWiki ); |
\ No newline at end of file |