mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Moved HTMLEditorField dialog title to jQuery UI compatible form attribute
This commit is contained in:
parent
43491c2641
commit
dc2a1205a6
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user