reopening a deleted style tab should switch to adding

This commit is contained in:
tophf 2017-09-03 18:14:31 +03:00
parent 519d745f59
commit e69b6482b7

View File

@ -1329,9 +1329,9 @@ function init() {
}
function setStyleMeta(style) {
$('#name').value = style.name;
$('#enabled').checked = style.enabled;
$('#url').href = style.url;
$('#name').value = style.name || '';
$('#enabled').checked = style.enabled !== false;
$('#url').href = style.url || '';
}
function initWithStyle({style, codeIsUpdated}) {