http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100259

Revision: 100259
Author:   jeroendedauw
Date:     2011-10-19 19:09:05 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
follow up to r100251; added missing file

Added Paths:
-----------
    trunk/extensions/Contest/resources/contest.special.contest.js

Added: trunk/extensions/Contest/resources/contest.special.contest.js
===================================================================
--- trunk/extensions/Contest/resources/contest.special.contest.js               
                (rev 0)
+++ trunk/extensions/Contest/resources/contest.special.contest.js       
2011-10-19 19:09:05 UTC (rev 100259)
@@ -0,0 +1,41 @@
+/**
+ * JavasSript for the Contest MediaWiki extension.
+ * @see https://www.mediawiki.org/wiki/Extension:Contest
+ * 
+ * @licence GNU GPL v3 or later
+ * @author Jeroen De Dauw <jeroendedauw at gmail dot com>
+ */
+
+(function( $, mw ) { $( document ).ready( function() {
+       
+       var _this = this;
+       
+       this.sendReminder = function() {
+               
+       };
+       
+       this.showReminderDialog = function() {
+               $dialog = $( '<div />' ).html( '' ).dialog( {
+                       'title': mw.msg( 'contest-contest-reminder-title' ),
+                       'buttons': [
+                               {
+                                       'text': mw.msg( 
'contest-contest-reminder-send' ),
+                                       'click': function() { 
_this.sendReminder(); }
+                               },
+                               {
+                                       'text': mw.msg( 
'contest-contest-reminder-cancel' ),
+                                       'click': function() {
+                                               $( this ).dialog( 'close' );
+                                       }
+                               }
+                       ]
+               } );
+               
+               $dialog.append( $( '<p />' ).text( mw.msg( 
'contest-contest-reminder-preview' ) ) ).append( '<hr />' );
+               
+               $dialog.append( $( '#reminder-content' ).html() ); 
+       };
+       
+       $( '#send-reminder' ).button().click( this.showReminderDialog );
+       
+} ); })( window.jQuery, window.mediaWiki );
\ No newline at end of file


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to