Permalink
Browse files

MINOR Moved HTMLEditorField dialog title to jQuery UI compatible form…

… attribute
  • Loading branch information...
1 parent 43491c2 commit dc2a1205a6cee8d6dd3a86823016b50247c1fdff @chillu chillu committed Apr 25, 2011
Showing with 14 additions and 1 deletion.
  1. +14 −1 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)

0 comments on commit dc2a120

Please sign in to comment.