1
0
Fork 0
forked from 0x2620/oxjs

fix Ox.Edidable textarea height, dont add title to links in parseHTML

This commit is contained in:
j 2012-01-19 22:07:39 +05:30
commit 7475ef0124
3 changed files with 21 additions and 16 deletions

View file

@ -397,9 +397,14 @@ Ox.AnnotationFolder = function(options, self) {
if (self.widget && self.options.items.length) {
self.$annotations.find('.OxEditableElement').each(function() {
var $element = $(this);
if (!Ox.getObjectById(
self.options.items, $element.data('id')
)[self.options.type]) {
// We don't want to catch an eventual placeholder,
// which is an EditableElement without .data('id')
if (
$element.data('id')
&& !Ox.getObjectById(
self.options.items, $element.data('id')
)[self.options.type]
) {
$element.addClass('OxWarning');
}
});