Created
August 24, 2015 05:28
-
-
Save vgrish/1c199e125f3d4cad8a64 to your computer and use it in GitHub Desktop.
скрываем таб по названию
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* OnDocFormPrerender */ | |
switch ($modx->event->name) { | |
case 'OnDocFormPrerender': | |
if ($mode !== 'upd') { | |
return ''; | |
} | |
$modx->controller->addHtml('<script type="text/javascript"> | |
Ext.ComponentMgr.onAvailable("minishop2-product-settings-panel", function() { | |
this.on("afterrender", function() { | |
Ext.each(this.items.items, function(tab, i) { | |
if (tab.title == "Опции — цвет") { | |
this.hideTabStripItem(i); | |
} | |
}, this); | |
}); | |
}); | |
</script>'); | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment