mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Fix issue processwire/processwire-issues#2002
This commit is contained in:
@@ -2665,7 +2665,7 @@ function InputfieldStates($target) {
|
|||||||
var config = ProcessWire.config;
|
var config = ProcessWire.config;
|
||||||
}
|
}
|
||||||
if(typeof config !== "undefined" && config.debug) {
|
if(typeof config !== "undefined" && config.debug) {
|
||||||
$('.InputfieldHeader > i.toggle-icon', $target).on('mouseenter', function() {
|
$('.InputfieldHeader > i.toggle-icon:not(.toggle-icon-debug)', $target).on('mouseenter', function() {
|
||||||
var $label = $(this).parent('label');
|
var $label = $(this).parent('label');
|
||||||
if($label.length == 0) return;
|
if($label.length == 0) return;
|
||||||
var forId = $label.attr('for');
|
var forId = $label.attr('for');
|
||||||
@@ -2682,7 +2682,7 @@ function InputfieldStates($target) {
|
|||||||
var $label = $(this).parent('label');
|
var $label = $(this).parent('label');
|
||||||
if($label.length == 0) return;
|
if($label.length == 0) return;
|
||||||
$label.find('.InputfieldNameTip').remove();
|
$label.find('.InputfieldNameTip').remove();
|
||||||
});
|
}).addClass('toggle-icon-debug');
|
||||||
}
|
}
|
||||||
|
|
||||||
// no need to apply anything further for ajax-loaded inputfields
|
// no need to apply anything further for ajax-loaded inputfields
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user