FSN#40426 Importfunctie niet meer te op te slaan na bewerken
svn path=/Website/trunk/; revision=33758
This commit is contained in:
@@ -8,6 +8,16 @@
|
||||
var generic = getQParamInt("gen", 0);
|
||||
var this_model = new model_fac_import_app();
|
||||
|
||||
this_model.hook_pre_edit = function (obj, fld)
|
||||
{
|
||||
%>
|
||||
<script>
|
||||
var gen = "<%=generic%>";
|
||||
var bestelcatalogus = (<%=generic%>==0);
|
||||
</script>
|
||||
<%
|
||||
}
|
||||
|
||||
if (generic == 1)
|
||||
{
|
||||
this_model.autfunction = "WEB_PRSSYS";
|
||||
|
||||
@@ -1,17 +1,20 @@
|
||||
function pre_submit()
|
||||
{
|
||||
var validation_message = "";
|
||||
|
||||
var disc = $("#orderdiscipline").val();
|
||||
var bedr = $("#company").val();
|
||||
|
||||
if (disc == -1 && bedr == -1)
|
||||
validation_message = L("fac_import_app_err1");
|
||||
|
||||
if (validation_message != "")
|
||||
if (bestelcatalogus)
|
||||
{
|
||||
FcltMgr.alert(validation_message);
|
||||
return false;
|
||||
var validation_message = "";
|
||||
|
||||
var disc = $("#orderdiscipline").val();
|
||||
var bedr = $("#company").val();
|
||||
|
||||
if (disc == -1 && bedr == -1)
|
||||
validation_message = L("fac_import_app_err1");
|
||||
|
||||
if (validation_message != "")
|
||||
{
|
||||
FcltMgr.alert(validation_message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user