Compare commits

..

No commits in common. "ef16e873a02ec9070f4f75c9dfb5b1144b33bcf2" and "c05d10b6f19b64a6a59532026740d9ceddf2f1d4" have entirely different histories.

View file

@ -1,7 +1,7 @@
'use strict';
oml.ui.annotation = function(annotation, $iframe) {
var $quoteText = Ox.Element()
var $quotetext = Ox.Element()
.addClass('OxSelectable OMLQuote')
.html(Ox.encodeHTMLEntities(annotation.text).replace(/\n/g, '<br/>'))
.on({
@ -11,19 +11,18 @@ oml.ui.annotation = function(annotation, $iframe) {
id: annotation.id
})
}
});
var $quoteBackground = Ox.Element().addClass('OMLQuoteBackground');
})
var $quote = Ox.Element()
.addClass('OMLQuoteBox')
.append(
$quoteBackground
Ox.Element().addClass('OMLQuoteBackground')
).append(
$quoteText
);
$quotetext
)
var notes = annotation.notes.length ? annotation.notes.map(function(note) {
note.editable = !note.user
return note
}) : [];
}) : []
var $notes = Ox.ArrayEditable({
editing: true,
items: notes,
@ -97,7 +96,6 @@ oml.ui.annotation = function(annotation, $iframe) {
selected && selected.classList.remove('selected')
that.addClass('selected')
that.gainFocus()
that[0].scrollIntoViewIfNeeded()
}
return that;
};