BUG 7802 In Advanced Search -> Information -> Dynaform -> Change Log, the Submit Button was enabled.

Was added a javascript code to disable the Submit Button in Advanced Search -> Information -> Dynaform -> Change Log.
This commit is contained in:
Vera Osokina
2013-04-01 14:37:29 -04:00
parent b668474c8a
commit 6dca8f5ab0

View File

@@ -381,8 +381,20 @@ if ($actionAjax == 'dynaformChangeLogViewHistory') {
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = '#';
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_POST['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view' );
?>
<script language="javascript">
window.onload = function () {
var inputs = document.getElementsByTagName('input');
for(var i= 0; i<inputs.length; i++) {
if(inputs[i].type == 'button' || inputs[i].type == 'submit')
{
inputs[i].disabled = true;
}
}
};
</script>
<script language="javascript">
<?php
global $G_FORM;