js在magento中自动合并

时间:2017-06-15 14:58:21

标签: javascript jquery magento merge merge-conflict-resolution

当我禁用js merge时,会自动再次合并。我不知道怎么做。我有什么方法可以检查它为什么或如何发生?

如果js合并,则管理菜单和提交按钮不起作用。我尝试在main.xml中更改js文件的顺序,如下所述,它没有用。

  1. 在原型是必须的之前,始终在页面上的任何其他脚本之前包含jQuery。
  2. 添加jQuery.noConflict();直接调用jQuery库文件的末尾。
  3. 我主要担心的是,js不应自动合并。

    我的main.xml文件

    <action method="setTitle" translate="title"><title>Magento Admin</title></action>
                    <action method="addJs"><script>lib/jquery/jquery-1.10.2.min.js</script></action>
                    <action method="addJs"><script>lib/jquery/noconflict.js</script></action>
                    <action method="addJs"><script>prototype/prototype.js</script></action>
                    <action method="addItem"><type>js</type><name>extjs/fix-defer-before.js</name><params/><if/><condition>can_load_ext_js</condition></action>
                    <action method="addJs"><script>prototype/window.js</script></action>
                    <action method="addJs"><script>scriptaculous/builder.js</script></action>
                    <action method="addJs"><script>scriptaculous/effects.js</script></action>
                    <action method="addJs"><script>scriptaculous/dragdrop.js</script></action>
                    <action method="addJs"><script>scriptaculous/controls.js</script></action>
                    <action method="addJs"><script>scriptaculous/slider.js</script></action>
                    <action method="addJs"><script>lib/ccard.js</script></action>
                    <action method="addJs"><script>prototype/validation.js?version=2.5</script></action>
                    <action method="addJs"><script>varien/js.js</script></action>
                    <action method="addJs"><script>mage/translate.js</script></action>
    
                    <action method="addJs"><script>mage/adminhtml/hash.js</script></action>
                    <action method="addJs"><script>mage/adminhtml/events.js</script></action>
                    <action method="addJs"><script>mage/adminhtml/loader.js</script></action>
                    <action method="addJs"><script>mage/adminhtml/grid.js</script></action>
                    <action method="addJs"><script>mage/adminhtml/tabs.js</script></action>
                    <action method="addJs"><script>mage/adminhtml/form.js</script></action>
                    <action method="addJs"><script>mage/adminhtml/accordion.js</script></action>
                    <action method="addJs"><script>mage/adminhtml/tools.js</script></action>
                    <action method="addJs"><script>mage/adminhtml/uploader.js</script></action>
                    <action method="addJs"><script>mage/adminhtml/product.js</script></action>
    

    网站purchaseglory.com

1 个答案:

答案 0 :(得分:0)

如果清除缓存无效,请前往管理员:

系统 - &gt;配置 - &gt;高级(开发人员)并将设置放到no以合并js文件

enter image description here