FSN#32924 Ook delete van modal popup's

svn path=/Website/trunk/; revision=26090
This commit is contained in:
Jos Groot Lipman
2015-08-27 11:08:02 +00:00
parent 2eca0a7355
commit 0a48b8e2e4

View File

@@ -191,9 +191,9 @@ function scaffolding_edit(model, scf_params)
buttons.push(scf_params.edit.buttons[i]);
}
}
buttons.push({title: L("lcl_submit"), action:"scf_submit()", icon: "opslaan.png", singlepress: true });
if (modal && model.REST_DELETE && key > 0)
buttons.push({title: L("lcl_delete"), action:"scf_delete()", icon: "delete.png", singlepress: true });
buttons.push({title: L("lcl_submit"), action:"scf_submit()", icon: "opslaan.png", singlepress: true });
buttons.push({title: L("lcl_cancel"), action:"scf_cancel()", icon: "undo.png" });
if (model.hashints)
buttons.splice(0, 0, {title: L("lcl_hint"), action:"scf_enablehint()", icon: "lightbulb.png" });