Changeset 0.28.3.1 (#188)
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
'<p style="color:var(--text-2);font-size:12px;margin:0 0 12px">Quick-start with a pre-configured task. You can customize after creation.</p>' +
|
||||
'<div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px">';
|
||||
TEMPLATES.forEach(function(tmpl) {
|
||||
html += '<div class="settings-section" style="padding:10px 12px;cursor:pointer" onclick="window._createFromTemplate(\'' + esc(tmpl.name) + '\')">' +
|
||||
html += '<div class="settings-section" style="padding:10px 12px;cursor:pointer" data-action="_createFromTemplate" data-args=\'' + JSON.stringify([esc(tmpl.name)]) + '\'>' +
|
||||
'<div style="font-weight:600;font-size:13px">' + esc(tmpl.name) + '</div>' +
|
||||
'<div style="font-size:11px;color:var(--text-2);margin-top:4px">' + esc(tmpl.schedule) + '</div>' +
|
||||
'</div>';
|
||||
@@ -269,13 +269,13 @@
|
||||
}
|
||||
|
||||
// Template launcher
|
||||
window._createFromTemplate = function(name) {
|
||||
sb.register('_createFromTemplate', function(name) {
|
||||
var tmpl = TEMPLATES.find(function(t) { return t.name === name; });
|
||||
if (tmpl) showCreateForm({ name: tmpl.name, prompt: tmpl.prompt, schedule: tmpl.schedule });
|
||||
};
|
||||
});
|
||||
|
||||
// ── Entry point (called from settings loader) ──
|
||||
window._loadSettingsTasks = function() {
|
||||
sb.register('_loadSettingsTasks', function() {
|
||||
loadTaskList();
|
||||
};
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user