help-texts: add

users with permission edit_help_texts are allowed to select edit help
texts from menu and enter texts for all event fields. Other users will
see help texts as tooltips. This allows to provide help to users
depending on your workflow. help texts are saved by project and studio.
This commit is contained in:
Milan
2023-03-20 23:09:11 +01:00
parent 6e2a04dd94
commit 979377c31d
16 changed files with 447 additions and 2 deletions

View File

@@ -333,7 +333,22 @@ $(document).ready(
updateCheckBox("#edit_event input[name='published']", 0);
}
}
)
)
jQuery.getJSON("help-texts.cgi?project_id="+getProjectId()+"&studio_id="+getStudioId()+"&action=get",
function(data){
for (col in data){
let value = data[col];
console.log(col+" "+value)
$(`input[name="${col}"]`).hover(function() {
$(this).attr("title",value)
});
$(`textarea[class="${col}"]`).hover(function() {
$(this).attr("title",value)
});
}
});
console.log("done")
}
);