Skip to content

Instantly share code, notes, and snippets.

plugins.push(function(viewModel) {
var addMyButton = function() {
var $toobarRightButtons = $('#toolbar .rightButtons');
if (!$toobarRightButtons.length) {
setTimeout(addMyButton, 50);
return;
}
$('<a title="Hello" class="ui-button ui-corner-all ui-widget" role="button">\
<span class="ui-button-icon ui-icon fa fa-fw fa-times-circle"></span>\
<span class="ui-button-icon-space"></span>Hello\