Skip to content
Snippets Groups Projects
Commit 92e8d6ac authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Remove prefix from ics_id in item form

Allow to scan a label to enter an ICS id via the web interface
parent 4c5e3a85
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,15 @@ $(document).ready(function() { ...@@ -22,6 +22,15 @@ $(document).ready(function() {
$(this).html(converter.makeHtml(raw)); $(this).html(converter.makeHtml(raw));
}); });
// remove 'CSE:ics_id:' prefix from ICS id
// allow to scan a label
$("#ics_id").keyup(function(event) {
var value = $(this).val();
if( value.length == 17 ) {
$(this).val(value.replace('CSE:ics_id:', ''));
}
});
$("#clear").click(function() { $("#clear").click(function() {
// clear all select fields // clear all select fields
$("select").val(''); $("select").val('');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment