adding et2_url_span class to surrounding span

This commit is contained in:
Ralf Becker 2014-03-12 18:48:59 +00:00
parent 1c6abab9a8
commit 6b09e93768

View File

@ -219,6 +219,13 @@ var et2_url = et2_textbox.extend(
e.data.showMessage("Invalid email","validation_error",true);
}
}
},
attachToDOM: function()
{
this._super.apply(this, arguments);
if (this.input[0].parentNode) jQuery(this.input[0].parentNode).addClass('et2_url_span');
}
});
et2_register_widget(et2_url, ["url", "url-email", "url-phone"]);