|
|
@ -729,17 +729,20 @@ function labelEditSave() {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var sql_exp = document.forms["label_edit_form"].sql_exp.value;
|
|
|
|
if (!is_opera()) {
|
|
|
|
var description = document.forms["label_edit_form"].description.value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sql_exp.length == 0) {
|
|
|
|
var sql_exp = document.forms["label_edit_form"].sql_exp.value;
|
|
|
|
alert("SQL Expression cannot be blank.");
|
|
|
|
var description = document.forms["label_edit_form"].description.value;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (description.length == 0) {
|
|
|
|
if (sql_exp.length == 0) {
|
|
|
|
alert("Caption field cannot be blank.");
|
|
|
|
alert("SQL Expression cannot be blank.");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (description.length == 0) {
|
|
|
|
|
|
|
|
alert("Caption field cannot be blank.");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
closeInfoBox();
|
|
|
|
closeInfoBox();
|
|
|
@ -792,11 +795,13 @@ function filterEditSave() {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var reg_exp = document.forms["filter_edit_form"].reg_exp.value;
|
|
|
|
if (!is_opera()) {
|
|
|
|
|
|
|
|
var reg_exp = document.forms["filter_edit_form"].reg_exp.value;
|
|
|
|
|
|
|
|
|
|
|
|
if (reg_exp.length == 0) {
|
|
|
|
if (reg_exp.length == 0) {
|
|
|
|
alert("Filter expression field cannot be blank.");
|
|
|
|
alert("Filter expression field cannot be blank.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
notify("Saving filter...");
|
|
|
|
notify("Saving filter...");
|
|
|
|