mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-13 23:41:00 +00:00
b4e4b497ee
Use uri! to generate links instead of hardcoded urls Fix #110 Fix invalid links needing to be POST forms Translate login message for boost and like directly from template Put js for search in its own file
13 lines
342 B
JavaScript
13 lines
342 B
JavaScript
window.onload = function(evt) {
|
|
var form = document.getElementById('form');
|
|
form.addEventListener('submit', function () {
|
|
for (var input of form.getElementsByTagName('input')) {
|
|
if (input.name === '') {
|
|
input.name = input.id
|
|
}
|
|
if (input.name && !input.value) {
|
|
input.name = '';
|
|
}
|
|
}
|
|
});
|
|
}
|