mirror of
https://github.com/Mibew/button-refresh-plugin.git
synced 2025-01-22 17:40:32 +03:00
Insert additional JS in the right place
This commit is contained in:
parent
c6d064a22e
commit
823cea36a7
@ -83,7 +83,7 @@ class Plugin extends AbstractPlugin implements PluginInterface
|
|||||||
$script->setAttribute('type', 'text/javascript');
|
$script->setAttribute('type', 'text/javascript');
|
||||||
|
|
||||||
$last_index = count($args['button']->getChildren()) - 1;
|
$last_index = count($args['button']->getChildren()) - 1;
|
||||||
$args['button']->addChildAt($script, $last_index - 1);
|
$args['button']->addChildAt($script, $last_index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user