Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -165,7 +165,7 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType){
|
|||||||
|
|
||||||
// Unchecks the Ignore checkbox for the current row
|
// Unchecks the Ignore checkbox for the current row
|
||||||
$("input[name='insert_ignore_" + multi_edit + "']").attr({'checked': false});
|
$("input[name='insert_ignore_" + multi_edit + "']").attr({'checked': false});
|
||||||
$this_input = $("input[name='fields[multi_edit][" + multi_edit + "][" + urlField + "]']");
|
var $this_input = $("input[name='fields[multi_edit][" + multi_edit + "][" + urlField + "]']");
|
||||||
|
|
||||||
// Does this field come from datepicker?
|
// Does this field come from datepicker?
|
||||||
if ($this_input.data('comes_from') == 'datepicker') {
|
if ($this_input.data('comes_from') == 'datepicker') {
|
||||||
@@ -214,11 +214,11 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//validate for integer type
|
//validate for integer type
|
||||||
if(theType.substring(0,3)=="int"){
|
if(theType.substring(0,3) == "int"){
|
||||||
|
$this_input.removeClass("invalid_value");
|
||||||
if(isNaN(dt.value)){
|
if(isNaN($this_input.val())){
|
||||||
dt.className="invalid_value";
|
$this_input.addClass("invalid_value");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1673,8 +1673,10 @@ table#serverconnection_trg_local {
|
|||||||
/**
|
/**
|
||||||
* Validation error message styles
|
* Validation error message styles
|
||||||
*/
|
*/
|
||||||
.invalid_value
|
input[type=text].invalid_value,
|
||||||
{background:#F00;}
|
.invalid_value {
|
||||||
|
background:#F00;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ajax notification styling
|
* Ajax notification styling
|
||||||
|
Reference in New Issue
Block a user