Hello,
In file:
{site}/components/com_booklibrary/booklibrary.html.php
you need find function:
displayBooks
There are you need edit code
Code: |
function lend_request_submitbutton() {
var form = document.userForm;
if (form.user_name.value == "") {
alert( "<?php echo _BOOKLIBRARY_INFOTEXT_JS_LEND_REQ_NAME; ?>" );
} else if (form.user_email.value == "" || !isValidEmail(form.user_email.value)) {
alert( "<?php echo _BOOKLIBRARY_INFOTEXT_JS_LEND_REQ_EMAIL;?>" );
} else if (form.user_mailing == "") {
alert( "<?php echo _BOOKLIBRARY_INFOTEXT_JS_LEND_REQ_MAILING;?>" );
} else if ((form.lend_until.value == "") || (form.lend_until.value < form.lend_from.value)) {
alert( "<?php echo _BOOKLIBRARY_INFOTEXT_JS_LEND_REQ_UNTIL;?>" );
} else {
form.submit();
}
}
|
to some like:
Code: |
function lend_request_submitbutton() {
var form = document.userForm;
form.submit();
}
|
and in this function you will need find form "userForm" and edit it
May be yet some thing, I not know how you will use that
Thnaks,
OrdaSoft team