Skip to content

Commit 242f3c9

Browse files
committed
Update reloadCronPlaceholders()
1 parent 4058fa9 commit 242f3c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

interface/web/sites/templates/cron_edit.htm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@
9595
//console.log(data);
9696
$("#php_cli_binary").attr('data-original-title', data.php_cli_binary);
9797
$('#docroot_client').attr('data-original-title', data.docroot_client);
98-
// Load and display a hint to the user that no domain was selected yet. Should only happen if no web_domain has been created or assigned by the user.
99-
if(data.domain == null || data.domain == '') {
100-
$('#domain').attr('data-original-title', "{tmpl_var name='domain_not_selected_placeholder_txt'}");
101-
} else {
98+
// Update the data-original-title of the {DOMAIN} placeholder or load and display a hint to the user that no domain was selected yet. Should only happen if no web has been created or assigned by or to the user.
99+
if(data.domain) {
102100
$('#domain').attr('data-original-title', data.domain);
101+
} else {
102+
$('#domain').attr('data-original-title', "{tmpl_var name='domain_not_selected_placeholder_txt'}");
103103
}
104104
});
105105
}

0 commit comments

Comments
 (0)