Close only opened toggleFields on save

This commit is contained in:
Thierry Francois 2014-05-04 16:48:28 +03:00
parent e2b15ad30c
commit ec7df6712e
1 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,7 @@
onunmatch: function(){},
onclick: function(e)
{
var toggleFields = this.parents('#Form_BulkEditingForm').find('.ss-toggle h4'),
var toggleFields = this.parents('#Form_BulkEditingForm').find('.ss-toggle .ui-accordion-header'),
state = this.data('state')
;
@ -113,7 +113,10 @@
$fieldHolder.removeClass('hasUpdate').addClass('updated');
$header.find('a').html(record.title);
$header.click();
if ( $header.hasClass('ui-state-active') )
{
$header.click();
}
});
this.removeClass('loading');