Merge pull request #818 from tractorcow/3.0-duplicate-field-description-fix

FIXED: Issue with duplicate help tips appearing on select fields in CMS
This commit is contained in:
Sam Minnée 2012-09-24 18:42:25 -07:00
commit 95005818c3

View File

@ -6,15 +6,17 @@
*/
$(".cms form .field .middleColumn > [title]").entwine({
onmatch: function() {
var title = this.prop("title");
var field = this.closest(".field");
if(title && title.length) {
if(title && title.length && field.has('.help').length == 0) {
var span = $("<span></span>", {
"class": "help",
"text": title
});
this.closest(".field").append(span);
field.append(span);
this.removeProp("title");
}