[wp-meta] [Making WordPress.org] #830: Add mentions to Trac
Making WordPress.org
noreply at wordpress.org
Fri Feb 13 00:53:22 UTC 2015
#830: Add mentions to Trac
--------------------------+------------------
Reporter: pento | Owner:
Type: enhancement | Status: new
Priority: normal | Component: Trac
Resolution: | Keywords:
--------------------------+------------------
Comment (by helen):
Okay, for fun, run this in the console or as a user script:
{{{
(function($){
var atCss = document.createElement('link'),
moreCss = document.createElement('style');
document.getElementsByTagName('head')[0].appendChild(atCss);
document.getElementsByTagName('head')[0].appendChild(moreCss)
atCss.rel = 'stylesheet';
atCss.type = 'text/css';
atCss.href = '//ichord.github.io/At.js/dist/css/jquery.atwho.css';
moreCss.innerHTML = '#atwho-container { font-size: 1.3em }';
$.getScript('//ichord.github.io/Caret.js/src/jquery.caret.js',
function() {
$.getScript('//ichord.github.io/At.js/dist/js/jquery.atwho.js',
function() {
var users = [];
// Most recent should show up first
$($('.change .username').get().reverse()).each(function () {
var username = $(this).data('username');
// @todo: exclude bots and include other committers
if (typeof username !== 'undefined' && -1 === $.inArray(username,
users)) {
users.push($(this).data('username'));
}
});
$('#comment').atwho({
at: "@",
data: users
});
});
});
})(jQuery);
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/830#comment:12>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list