Implemented the "multiple choices" in search forms for Enums and External keys.

SVN:trunk[2305]
This commit is contained in:
Denis Flaven
2012-10-20 13:32:59 +00:00
parent f61af1fe5c
commit c05c1062ce
10 changed files with 150 additions and 29 deletions

View File

@@ -150,16 +150,17 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
};
// Gather the parameters from the search form
$('#fs_'+me.id+' :input').each(
function(i)
$('#fs_'+me.id+' :input').each( function() {
if (this.name != '')
{
if (this.name != '')
var val = $(this).val(); // supports multiselect as well
if (val !== null)
{
theMap[this.name] = this.value;
theMap[this.name] = val;
}
}
);
});
if (me.oWizardHelper == null)
{
theMap['json'] = '';

20
js/jquery.multiselect.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -97,15 +97,16 @@ function LinksWidget(id, sClass, sAttCode, iInputId, sSuffix, bDuplicates, oWizH
me.UpdateButtons(0);
// Gather the parameters from the search form
$('#SearchFormToAdd_'+me.id+' :input').each(
function(i)
{
$('#SearchFormToAdd_'+me.id+' :input').each( function() {
if (this.name != '')
{
theMap[this.name] = this.value;
var val = $(this).val(); // supports multiselect as well
if (val !== null)
{
theMap[this.name] = val;
}
}
}
);
});
// Gather the already linked target objects
theMap.aAlreadyLinked = new Array();