mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Portal :
- Support for attachments in forms - Added a loader on LinkedSet fields while form is retrieving information on server when adding objects SVN:trunk[4014]
This commit is contained in:
@@ -30,7 +30,7 @@ use \Combodo\iTop\Renderer\RenderingOutput;
|
||||
use \Combodo\iTop\Form\Field\LinkedSetField;
|
||||
|
||||
/**
|
||||
* Description of BsSelectObjectFieldRenderer
|
||||
* Description of BsLinkedSetFieldRenderer
|
||||
*
|
||||
* @author Guillaume Lajarige <guillaume.lajarige@combodo.com>
|
||||
*/
|
||||
@@ -182,6 +182,9 @@ EOF
|
||||
// When we have data (meaning that we picked objects from search)
|
||||
if(oData !== undefined && Object.keys(oData.values).length > 0)
|
||||
{
|
||||
// Showing loader while retrieving informations
|
||||
$('#page_overlay').fadeIn(200);
|
||||
|
||||
// Retrieving new rows ids
|
||||
var aObjectIds = Object.keys(oData.values);
|
||||
|
||||
@@ -222,6 +225,10 @@ EOF
|
||||
}
|
||||
|
||||
$('#{$this->oField->GetGlobalId()}').val(JSON.stringify(aObjectIds));
|
||||
})
|
||||
.always(function(oData){
|
||||
// Hiding loader
|
||||
$('#page_overlay').fadeOut(200);
|
||||
});
|
||||
}
|
||||
// We come from a button
|
||||
|
||||
Reference in New Issue
Block a user