Whitespace cleanup.
This commit is contained in:
@@ -576,26 +576,25 @@ function validateConnection(form_name, form_obj)
|
|||||||
{
|
{
|
||||||
// All the text fields are checked excluding the port field because the default port can be used.
|
// All the text fields are checked excluding the port field because the default port can be used.
|
||||||
if ((form_name.elements[i].type == 'text') && (form_name.elements[i].name != 'src_port') && (form_name.elements[i].name != 'trg_port')) {
|
if ((form_name.elements[i].type == 'text') && (form_name.elements[i].name != 'src_port') && (form_name.elements[i].name != 'trg_port')) {
|
||||||
check = true;
|
check = true;
|
||||||
check = emptyFormElements(form_obj, form_name.elements[i].name);
|
check = emptyFormElements(form_obj, form_name.elements[i].name);
|
||||||
|
if (check==false) {
|
||||||
if (check==false) {
|
element = form_name.elements[i].name;
|
||||||
element = form_name.elements[i].name;
|
if (form_name.elements[i].name == 'src_host') {
|
||||||
if (form_name.elements[i].name == 'src_host') {
|
src_hostfilled = false;
|
||||||
src_hostfilled = false;
|
continue;
|
||||||
continue;
|
}
|
||||||
}
|
if (form_name.elements[i].name == 'trg_host') {
|
||||||
if (form_name.elements[i].name == 'trg_host') {
|
trg_hostfilled = false;
|
||||||
trg_hostfilled = false;
|
continue;
|
||||||
continue;
|
}
|
||||||
}
|
if ((form_name.elements[i].name == 'src_socket' && src_hostfilled==false) || (form_name.elements[i].name == 'trg_socket' && trg_hostfilled==false))
|
||||||
if ((form_name.elements[i].name == 'src_socket' && src_hostfilled==false) || (form_name.elements[i].name == 'trg_socket' && trg_hostfilled==false))
|
break;
|
||||||
break;
|
else
|
||||||
else
|
continue;
|
||||||
continue;
|
break;
|
||||||
break;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!check) {
|
if (!check) {
|
||||||
form_obj.reset();
|
form_obj.reset();
|
||||||
@@ -1686,10 +1685,10 @@ $(document).ready(function(){
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function divShowHideFunc(ahref, id) {
|
function divShowHideFunc(ahref, id) {
|
||||||
$(ahref).addEvent('click', function() {
|
$(ahref).addEvent('click', function() {
|
||||||
if ($(id).getStyle('display')=="none")
|
if ($(id).getStyle('display')=="none")
|
||||||
$(id).tween('display', 'block');
|
$(id).tween('display', 'block');
|
||||||
else
|
else
|
||||||
$(id).tween('display', 'none');
|
$(id).tween('display', 'none');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user