Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIXED: Issue with duplicate help tips appearing on select fields in C…

…MS. See Security / Groups / Edit Group form field for example.
  • Loading branch information...
commit 495ffb033cd157fb35ee9d1cb3a16baed8bead32 1 parent 2b172aa
@tractorcow tractorcow authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 admin/javascript/LeftAndMain.FieldHelp.js
View
6 admin/javascript/LeftAndMain.FieldHelp.js
@@ -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");
}
Please sign in to comment.
Something went wrong with that request. Please try again.