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:
@@ -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")
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user