Last active
August 29, 2015 14:03
-
-
Save putzflorian/1ca29beab3e7a6fb120a to your computer and use it in GitHub Desktop.
Pimcore Backend IFRAME
This file contains hidden or 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
| pimcore.registerNS("pimcore.plugin.productimport"); | |
| pimcore.plugin.productimport = Class.create(pimcore.plugin.admin, { | |
| getClassName: function() { | |
| return "pimcore.plugin.productimport"; | |
| }, | |
| initialize: function() { | |
| pimcore.plugin.broker.registerPlugin(this); | |
| var navContainer = Ext.get(Ext.query("#pimcore_navigation > ul")[0]); | |
| this.navEl = Ext.get(navContainer.insertHtml("beforeEnd", '<li id="pimcore_menu_products" class="pimcore_menu_item icon-pencil">Import</li>')); | |
| }, | |
| pimcoreReady: function (params,broker){ | |
| this.navEl.on("mousedown", function () { | |
| pimcore.globalmanager.add(id, new pimcore.tool.genericiframewindow("product_import", "/plugin/Productimport/import", "pimcore_icon_add", "Import")); | |
| }); | |
| } | |
| }); | |
| var productimportPlugin = new pimcore.plugin.productimport(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment