MINOR Moved HTMLEditorField dialog title to jQuery UI compatible form attribute

This commit is contained in:
Ingo Schommer 2011-04-25 21:49:35 +12:00
parent 43491c2641
commit dc2a1205a6

View File

@ -10,7 +10,20 @@
$(document).ready(function() { $(document).ready(function() {
$('.htmleditorfield-form').dialog({autoOpen: false, bgiframe: true, modal: true, height: 500, width: 500, ghost: true}); // Move title from headline to (jQuery compatible) title attribute
$('.htmleditorfield-form').each(function() {
var titleEl = $(this).find(':header:first');
$(this).attr('title', titleEl.text());
titleEl.remove();
});
$('.htmleditorfield-form').dialog({
autoOpen: false,
bgiframe: true,
modal: true,
height: 500,
width: 500,
ghost: true
});
/** /**
* On page refresh load the initial images (in root) * On page refresh load the initial images (in root)