From dc2a1205a6cee8d6dd3a86823016b50247c1fdff Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 25 Apr 2011 21:49:35 +1200 Subject: [PATCH] MINOR Moved HTMLEditorField dialog title to jQuery UI compatible form attribute --- javascript/HtmlEditorField.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/javascript/HtmlEditorField.js b/javascript/HtmlEditorField.js index 5bb9e4f23..a3f211b0b 100644 --- a/javascript/HtmlEditorField.js +++ b/javascript/HtmlEditorField.js @@ -10,7 +10,20 @@ $(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)