misc: do not run tooltip code on ckeditor if there's no field
This commit is contained in:
parent
aaa359c97f
commit
4dcca621e6
|
@ -9,11 +9,13 @@ $(document).ready( function() {
|
|||
return;
|
||||
}
|
||||
$('div.WysiwygTextWidget textarea').ckeditor();
|
||||
$('.block-edit-custom-text a.edit-custom-text').hide();
|
||||
$('.block-edit-custom-text').tooltip({
|
||||
content: LIVE_EDIT_TOOLTIP, items: 'div', track: true,
|
||||
show: {delay: 0}
|
||||
});
|
||||
if ($('.block-edit-custom-text').length > 0) {
|
||||
$('.block-edit-custom-text a.edit-custom-text').hide();
|
||||
$('.block-edit-custom-text').tooltip({
|
||||
content: LIVE_EDIT_TOOLTIP, items: 'div', track: true,
|
||||
show: {delay: 0}
|
||||
});
|
||||
}
|
||||
$('.block-edit-custom-text').dblclick(function(event) {
|
||||
var edit_url = $(this).find('a.edit-custom-text').attr('href');
|
||||
var custom_text = $(this).find('div.block-custom-text');
|
||||
|
|
Loading…
Reference in New Issue