[FIX] selection of default section on opening link dialog

bzr revid: xmo@openerp.com-20130923100241-n42lczqdpupfiae4
This commit is contained in:
Xavier Morel
2013-09-23 12:02:41 +02:00
parent 4b481b3509
commit 3e336cda54
@@ -485,10 +485,7 @@
return;
}
$target
.addClass('active')
.siblings().removeClass('active')
.addBack().removeClass('has-error');
this.changed($target.find('.url-source'));
},
'click button.remove': 'remove_link',
}),
@@ -623,6 +620,10 @@
},
changed: function ($e) {
this.$('.url-source').not($e).val('');
$e.closest('.list-group-item')
.addClass('active')
.siblings().removeClass('active')
.addBack().removeClass('has-error');
},
/**
* CKEDITOR.plugins.link.getSelectedLink ignores the editor's root,