javascript - Magento: How to load js in admin panel -


in last 2 days i'm trying load .js file admin panel, without progress. i'm working on custom theme , tried tens of solutions. cache disabled. scripts try load in magento js folder , came magento instalation.

i tried add code in app / design / adminhtml / verdapay / layout / local.xml

<layout>   <adminhtml_dashboard_index>     <reference name="head">             <action method="addjs"><script>lib/jquery/jquery-1.10.2.min.js</script></action>             <action method="addjs"><script>lib/jquery/noconflict.js</script></action>                  </reference>   </adminhtml_dashboard_index> </layout> 

then changed tag <adminhtml_dashboard_index> <adminhtml>. combined many solution xml tags (adding <default> instead of <adminhtml>, etc.... )

i tried add in main.xml (same path direction local.xml) folloving code:

<action method="addjs"><script>lib/jquery/jquery-1.10.2.min.js</script></action>            <action method="addjs"><script>lib/jquery/noconflict.js</script></action> 

i found in main.xml lot of other script loaded there in backend, action did, didn't result in admin page.

some adviced told me prototype.js has conflict jquery , because of reason tried load custom script too, still nothing. <head> tag in admin panel looks same whatever script add/remove main.xml file.

loading js in frontend works correctly, need js file in backend too, making changes design (menu area example).

can give me useful advice issue?

regrads, mladja

app / design / adminhtml / verdapay / layout / local.xml <-- location won't work.

app/design/adminhtml/verdapay/default/layout/local.xml


Comments