Diferencia entre revisiones de «Usuario:Candalua/common.js»
Contenido eliminado Contenido añadido
Sin resumen de edición |
Sin resumen de edición |
||
Línea 2:
self.ws_messages = {
'optlist': 'Display options',
'
'
'reduce_font': '-',
'enlarge_font_tooltip': 'Enlarge the size of the text',
'reduce_font_tooltip': 'Reduce the size of the text'
}
Línea 32 ⟶ 33:
get_optlist();
$('#optlist').append('<li id="text_size"></li>');
$('#text_size').append(ws_msg('text_size'));
$('#text_size').append('<a href="#" id="enlarge_font" title="' + ws_msg('enlarge_font_tooltip') + '">' + ws_msg('enlarge_font') + '</a>');
$('#text_size').append('<a href="#" id="reduce_font" title="' + ws_msg('reduce_font_tooltip') + '">' + ws_msg('reduce_font') + '</a>');
// Bind click handlers
$(
e.preventDefault();
enlargeFont();
});
$(
e.preventDefault();
reduceFont();
Línea 46 ⟶ 49:
//expand as default
$("#p-displayOptions").removeClass('collapsed').addClass('expanded')
$("#p-displayOptions > div.body").show();
});
|