FSN#35280 singlepress moet met nieuwste jQuery *echt* een id hebben

svn path=/Website/trunk/; revision=27941
This commit is contained in:
Jos Groot Lipman
2016-01-27 14:13:11 +00:00
parent ec92a740e3
commit 35eca2b3e6
4 changed files with 5 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ var kosten = oRs("kosten").value;
%>
</form>
<%
CreateButtons([ { title: L("lcl_res_duplicate"), action: "cnt_split_submit()", singlepress: true },
CreateButtons([ { title: L("lcl_submit"), action: "cnt_split_submit()" },
{ title: L("lcl_cancel"), action: "FcltMgr.closeDetail(window, { cancel: true })"} ]);
%>
</body>

View File

@@ -227,7 +227,7 @@ var bits = getQParamInt("bits", 0); // Inspectie bits
BLOCK_END();
var buttons = [];
buttons.push({title: L("lcl_select"), action:"ins_submit()", singlepress: true})
buttons.push({title: L("lcl_select"), action:"ins_submit()"})
buttons.push({title: L("lcl_cancel"), action:"ins_cancel()"})
CreateButtons(buttons)
IFACE.FORM_END();

View File

@@ -540,7 +540,7 @@ user.anything_todo_or_abort(this_ins.canChangeInt);
BLOCK_END();
var buttons = [];
buttons.push({title: L("lcl_submit"), action:"ins_submit()", singlepress: true})
buttons.push({title: L("lcl_submit"), action:"ins_submit()"})
buttons.push({title: L("lcl_delete"), action:"ins_delete()"})
buttons.push({title: L("lcl_cancel"), action:"ins_cancel()"})
CreateButtons(buttons)

View File

@@ -70,6 +70,8 @@ var iface =
{
if (typeof btn == "object")
btn = btn.id;
if (!btn)
alert("For button.disable it shoud have an id");
// Kan ondertussen dubbel aanwezig zijn doordat we knoppen onderin frame herhalen
// Een selectie via $("." + btn") werkt niet omdat jQuery dan alleen de eerste id ophaalt
var $btn = $("li[id=" + btn + "]");