mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
- Fixed the search form, and also fixed the search/selection of objects to link (n:n links) that was broken on IE8.
SVN:trunk[925]
This commit is contained in:
19
js/utils.js
19
js/utils.js
@@ -104,12 +104,16 @@ function ReloadSearchForm(divId, sClassName, sBaseClass, sContext)
|
||||
var oDiv = $('#'+divId);
|
||||
oDiv.block();
|
||||
var oFormEvents = $('#'+divId+' form').data('events');
|
||||
var aSubmit = new Array();
|
||||
|
||||
// Save the submit handlers
|
||||
aSubmit = new Array();
|
||||
aSubmit = new Array();
|
||||
if ( (oFormEvents != null) && (oFormEvents.submit != undefined))
|
||||
{
|
||||
aSubmit = oFormEvents.submit;
|
||||
for(index = 0; index < oFormEvents.submit.length; index++)
|
||||
{
|
||||
aSubmit [index ] = { data:oFormEvents.submit[index].data, namespace:oFormEvents.submit[index].namespace, handler: oFormEvents.submit[index].handler};
|
||||
}
|
||||
}
|
||||
|
||||
$.post('ajax.render.php?'+sContext,
|
||||
@@ -177,3 +181,14 @@ function GetUserPreference(sPreferenceCode, sDefaultValue)
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check/uncheck a whole list of checkboxes
|
||||
*/
|
||||
function CheckAll(sSelector, bValue)
|
||||
{
|
||||
var value = bValue;
|
||||
$(sSelector).each( function() {
|
||||
this.checked = value;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user