TWYN#52344 Multi-select filters correct afhandelen (alleen eerste tonen)
svn path=/Website/trunk/; revision=39860
This commit is contained in:
@@ -160,13 +160,15 @@ var iface =
|
||||
input = stringForm.find("[name=" + nm + "]");
|
||||
if (!input.length)
|
||||
return;
|
||||
|
||||
var multiple = formObject[nm] instanceof Array && formObject[nm].length > 1;
|
||||
|
||||
if (input.attr("type") == "checkbox" || input.attr("type") == "radio")
|
||||
{
|
||||
input.prop("checked", !!formObject[nm])
|
||||
}
|
||||
else if (input.prop("tagName") == "SELECT")
|
||||
{
|
||||
var multiple = formObject[nm] instanceof Array && formObject[nm].length > 1;
|
||||
|
||||
// This fills out the filters as saved from a (multi)select into the input field (so we dont have to perform any FillListbox()'s)
|
||||
if (input.is(":hidden") && nm.length > 2 && stringForm.find("input#" + nm.slice(0, -2)).length > 0)
|
||||
@@ -193,6 +195,10 @@ var iface =
|
||||
}
|
||||
else if (!input.hasClass("final")) // Final's niet opslaan als filter
|
||||
{
|
||||
// Not supported; Could take too long to open the list, so just take the first value
|
||||
if (multiple)
|
||||
formObject[nm] = formObject[nm][0];
|
||||
|
||||
input.val(formObject[nm]);
|
||||
input.prop('defaultValue', formObject[nm]);
|
||||
if ("suggestattr" in formObject && nm in formObject.suggestattr)
|
||||
|
||||
Reference in New Issue
Block a user