mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Combined two "opened" event handlers in InputfieldImage.js into one
This commit is contained in:
@@ -2351,13 +2351,15 @@ function InputfieldImage($) {
|
|||||||
$newTab.find(".InputfieldImage").each(function() {
|
$newTab.find(".InputfieldImage").each(function() {
|
||||||
initInputfield($(this));
|
initInputfield($(this));
|
||||||
});
|
});
|
||||||
}).on('opened', '.InputfieldImage', function() {
|
|
||||||
//console.log('InputfieldImage opened');
|
|
||||||
initInputfield($(this));
|
|
||||||
}).on('opened', function() {
|
}).on('opened', function() {
|
||||||
$(this).find(".InputfieldImage").each(function() {
|
var $t = $(this);
|
||||||
|
if($t.hasClass('InputfieldImage')) {
|
||||||
|
initInputfield($t);
|
||||||
|
} else {
|
||||||
|
$t.find('.InputfieldImage').each(function() {
|
||||||
initInputfield($(this));
|
initInputfield($(this));
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user