- 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:
Guillaume Lajarige
2016-04-28 08:22:46 +00:00
parent 75b32f2552
commit 4d91e92344
6 changed files with 365 additions and 6 deletions

View File

@@ -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