User:Polygnotus/Scripts/FavouriteTemplates.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 161:
type: 'element',
element: function() {
return $('<abutton>')
.attr('href', '#')
.addClass('tool tool-button')
.text(displayTitle)
.css({
'padding': '4px 8px',
.attr( 'hrefmargin',: '#2px'),
'border': '1px solid #a2a9b1',
'border-radius': '2px',
'background': '#f8f9fa',
'cursor': 'pointer',
'font-size': '11px',
'font-family': 'sans-serif'
})
.hover(
function() { $(this).css('background', '#eaecf0'); },
function() { $(this).css('background', '#f8f9fa'); }
)
.click(function(e) {
e.preventDefault();