Refactor code.

This commit is contained in:
Lars Jung 2015-04-25 17:10:47 +02:00
parent d5221c0d17
commit 1a47a2aa3b
5 changed files with 33 additions and 40 deletions

View file

@ -153,9 +153,9 @@ modulejs.define('ext/preview', ['_', '$', 'core/resource', 'core/settings', 'cor
function setRawLink(href) {
if (href) {
$('#pv-bar-raw').find('a').attr('href', href).end().show();
$('#pv-bar-raw').show().find('a').attr('href', href);
} else {
$('#pv-bar-raw').find('a').attr('href', '#').end().hide();
$('#pv-bar-raw').hide().find('a').attr('href', '#');
}
}