mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix js error
This commit is contained in:
parent
ab93909402
commit
b5586af56e
|
|
@ -1709,7 +1709,8 @@ if (count($object->records) > 0)
|
|||
newurl=jQuery("#previewsiteurl").val();
|
||||
if (! newurl.startsWith("http"))
|
||||
{
|
||||
alert('.dol_escape_js($langs->trans("ExternalURLMustStartWithHttp")).');
|
||||
alert(\''.dol_escape_js($langs->trans("ExternalURLMustStartWithHttp")).'\');
|
||||
return false;
|
||||
}
|
||||
|
||||
newpage=jQuery("#previewsiteurl").val() + "/" + jQuery("#previewpageurl").val() + ".php";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user