MediaWiki

Gadget-breadcrumbs.js

From Dogcraft Wiki

No edit summary
No edit summary
Line 3: Line 3:
$("#alertbutton-domino").click(function(){
$("#alertbutton-domino").click(function(){
mw.messages.set({'sandbox-test': 'Testing'});
mw.messages.set({'sandbox-test': 'Testing'});
var wiki_sandbox_obj = new mw.Message( mw.messages, 'hello' );
var wiki_sandbox_obj = new mw.Message( mw.messages, 'sandbox-test' );
mw.log( wiki_sandbox_obj.text() );
mw.log( wiki_sandbox_obj.text() );
//mw.notify( mw.message( 'some-message' ) );
});
});
});
});

Revision as of 15:14, 27 December 2020

$(document).ready(function() {
	
	$("#alertbutton-domino").click(function(){
		mw.messages.set({'sandbox-test': 'Testing'});
		var wiki_sandbox_obj = new mw.Message( mw.messages, 'sandbox-test' );
		mw.log( wiki_sandbox_obj.text() );
		//mw.notify( mw.message( 'some-message' ) );
	});
		
});
This page was last modified on 27 December 2020, at 15:14. (3 months ago)