Changeset View
Changeset View
Standalone View
Standalone View
swh/web/add_forge_now/assets/create-request.js
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | .DataTable({ | ||||
} | } | ||||
], | ], | ||||
order: [[0, 'desc']] | order: [[0, 'desc']] | ||||
}); | }); | ||||
} | } | ||||
export function validateForgeUrl(input) { | export function validateForgeUrl(input) { | ||||
let customValidity = ''; | let customValidity = ''; | ||||
if (!validateUrl(input.value.trim(), ['http', 'https'])) { | if (!validateUrl(input.value.trim(), ['http:', 'https:'])) { | ||||
customValidity = 'The provided forge URL is not valid.'; | customValidity = 'The provided forge URL is not valid.'; | ||||
} | } | ||||
input.setCustomValidity(customValidity); | input.setCustomValidity(customValidity); | ||||
} | } |