Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exside/5072400 to your computer and use it in GitHub Desktop.
Save exside/5072400 to your computer and use it in GitHub Desktop.
<?php
if ($modx->event->name == 'OnManagerPageInit') {
$script = <<<SCRIPT
<script type="text/javascript">
Ext.ComponentMgr.onAvailable('modx-panel-resource', function(){
Ext.getCmp('modx-panel-resource').on('ready', function(){
window.setTimeout(function(){Ext.getCmp('modx-panel-resource').markDirty()}, 250);
})
})
</script>
SCRIPT;
$modx->regClientStartupScript($script, true);
}
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment