FSN#39638 Bulk bewerken via scaffolding
svn path=/Website/trunk/; revision=33637
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
function pre_submit()
|
function pre_submit(isMulti)
|
||||||
{
|
{
|
||||||
|
if (isMulti)
|
||||||
|
return true; // te ingewikkeld
|
||||||
|
|
||||||
// var module: gezet in xxx_kenmerk.asp.
|
// var module: gezet in xxx_kenmerk.asp.
|
||||||
// var property_type: voor nieuw kenmerk uit formfield "property_type".
|
// var property_type: voor nieuw kenmerk uit formfield "property_type".
|
||||||
// voor bestaand kenmerk indien a) wijzigbaar: uit formfield "property_type"
|
// voor bestaand kenmerk indien a) wijzigbaar: uit formfield "property_type"
|
||||||
// b) niet wijzigbaar: gezet in xxx_kenmerk.asp
|
// b) niet wijzigbaar: gezet in xxx_kenmerk.asp
|
||||||
var attributeType = ($("#attributetype").length == 0? property_type : $("#attributetype").val() );
|
var attributeType = ($("#attributetype").length == 0? property_type : $("#attributetype").val() );
|
||||||
|
|
||||||
var validation_message = "";
|
|
||||||
if (attributeType == "C" && $("#length").val() == "")
|
if (attributeType == "C" && $("#length").val() == "")
|
||||||
validation_message = L("mgt_srtkenmerk_lengte_val1");
|
validation_message = L("mgt_srtkenmerk_lengte_val1");
|
||||||
if (attributeType == "N" && $("#length").val() == "")
|
if (attributeType == "N" && $("#length").val() == "")
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ function scaffolding_edit(model, scf_params)
|
|||||||
|
|
||||||
if (typeof pre_submit != "undefined")
|
if (typeof pre_submit != "undefined")
|
||||||
{
|
{
|
||||||
if (!pre_submit())
|
if (!pre_submit(<%= multi?1:0 %>))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user