NanoRep_Widgets_1_1_0 - Version 2.1.2

Version Notes

Enable head.css in login iframe

Download this release

Release Info

Developer NanoRep
Extension NanoRep_Widgets_1_1_0
Version 2.1.2
Comparing to
See all releases


Code changes from version 2.1.1 to 2.1.2

app/code/local/NanoRep/Widgets/etc/config.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
- <!--
3
  /**
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
- * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
- */
11
  -->
12
  <config>
13
  <modules>
14
  <NanoRep_Widgets>
15
- <version>2.1.1</version>
16
  </NanoRep_Widgets>
17
  </modules>
18
  <global>
@@ -52,7 +52,7 @@
52
  </nanorepwidgets_setup>
53
  </resources>
54
  </global>
55
-
56
  <admin>
57
  <secure_url>
58
  <nanorep>/nanorep/adminhtml_mynanorep/index</nanorep>
@@ -155,4 +155,4 @@
155
  </orders_status>
156
  </nanorepwidgets>
157
  </default>
158
- </config>
1
  <?xml version="1.0"?>
2
+ <!--
3
  /**
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
+ * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
+ */
11
  -->
12
  <config>
13
  <modules>
14
  <NanoRep_Widgets>
15
+ <version>2.1.2</version>
16
  </NanoRep_Widgets>
17
  </modules>
18
  <global>
52
  </nanorepwidgets_setup>
53
  </resources>
54
  </global>
55
+
56
  <admin>
57
  <secure_url>
58
  <nanorep>/nanorep/adminhtml_mynanorep/index</nanorep>
155
  </orders_status>
156
  </nanorepwidgets>
157
  </default>
158
+ </config>
app/design/frontend/default/default/layout/nanorepwidgets.xml CHANGED
@@ -1,13 +1,13 @@
1
  <?xml version="1.0"?>
2
- <!--
3
  /**
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
- * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
- */
11
  -->
12
  <layout version="0.1.0">
13
  <default>
@@ -17,15 +17,15 @@
17
  <reference name="before_body_end">
18
  <block type="nanorepwidgets/float" ifconfig="nanorepwidgets/float_widget/active" name="nanorep_float_widget" as="nanorep.float.widget" template="nanorepwidgets/float.phtml" />
19
  <block type="nanorepwidgets/events" name="nanorep_events" as="nanorep_events" template="nanorepwidgets/events.phtml" />
20
- </reference>
21
  </default>
22
-
23
  <checkout_onepage_success>
24
  <reference name="after_body_end">
25
  <block type="nanorepwidgets/success" name="nanorep_success" as="nanorep_success" template="nanorepwidgets/success.phtml" />
26
  </reference>
27
  </checkout_onepage_success>
28
-
29
  <catalog_product_view>
30
  <reference name="head">
31
  <action method="addItem"><type>skin_js</type><file>nanorepwidgets/head.js</file></action>
@@ -35,33 +35,36 @@
35
  <block type="nanorepwidgets/embed" before="-" name="nanorep.embeded.widget" as="nanorep_embeded_widget" template="nanorepwidgets/embed.phtml" />
36
  </reference>
37
  </catalog_product_view>
38
-
39
  <nanorepwidgets_index_getcustomerhistory>
40
  <block type="nanorepwidgets/adminhtml_order_grid" name="root" output="toHtml" />
41
  </nanorepwidgets_index_getcustomerhistory>
42
-
43
  <nanorepwidgets_index_getcustomerhistoryjson>
44
  <block type="nanorepwidgets/customerhistoryjson" name="root" output="toHtml"/>
45
  </nanorepwidgets_index_getcustomerhistoryjson>
46
-
47
  <nanorepwidgets_index_cdc>
48
  <block type="core/template" name="root" output="toHtml" template="nanorepwidgets/cdc.phtml" />
49
  </nanorepwidgets_index_cdc>
50
-
51
  <nanorepwidgets_account_login>
52
  <update handle="nanorepwidgets_page_empty" />
 
 
 
53
  <reference name="content">
54
  <block type="nanorepwidgets/login" template="nanorepwidgets/login.phtml" />
55
  </reference>
56
  </nanorepwidgets_account_login>
57
-
58
  <nanorepwidgets_account_forgotpassword>
59
  <update handle="nanorepwidgets_page_empty" />
60
  <reference name="content">
61
  <block type="nanorepwidgets/forgotpassword" name="forgotPassword" template="nanorepwidgets/forgotpassword.phtml" />
62
  </reference>
63
  </nanorepwidgets_account_forgotpassword>
64
-
65
  <nanorepwidgets_order_list>
66
  <update handle="page_empty" />
67
  <remove name="nanorep_header_script" />
@@ -71,16 +74,16 @@
71
  <block type="sales/order_history" template="nanorepwidgets/order/list.phtml" />
72
  </reference>
73
  </nanorepwidgets_order_list>
74
-
75
  <contacts_index_index>
76
  <reference name="head">
77
  <action method="addItem"><type>skin_css</type><file>nanorepwidgets/contactus.css</file></action>
78
  </reference>
79
  <reference name="before_body_end">
80
  <block type="nanorepwidgets/contactus" ifconfig="nanorepwidgets/contact_us_widget/active" name="nanorep_contact_us_widget" as="nanorep.contact_us.widget" template="nanorepwidgets/contact_us.phtml" />
81
- </reference>
82
  </contacts_index_index>
83
-
84
  <!-- Custom page layout handles -->
85
  <nanorepwidgets_page_empty translate="label">
86
  <label>All Empty Layout Pages</label>
1
  <?xml version="1.0"?>
2
+ <!--
3
  /**
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
+ * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
+ */
11
  -->
12
  <layout version="0.1.0">
13
  <default>
17
  <reference name="before_body_end">
18
  <block type="nanorepwidgets/float" ifconfig="nanorepwidgets/float_widget/active" name="nanorep_float_widget" as="nanorep.float.widget" template="nanorepwidgets/float.phtml" />
19
  <block type="nanorepwidgets/events" name="nanorep_events" as="nanorep_events" template="nanorepwidgets/events.phtml" />
20
+ </reference>
21
  </default>
22
+
23
  <checkout_onepage_success>
24
  <reference name="after_body_end">
25
  <block type="nanorepwidgets/success" name="nanorep_success" as="nanorep_success" template="nanorepwidgets/success.phtml" />
26
  </reference>
27
  </checkout_onepage_success>
28
+
29
  <catalog_product_view>
30
  <reference name="head">
31
  <action method="addItem"><type>skin_js</type><file>nanorepwidgets/head.js</file></action>
35
  <block type="nanorepwidgets/embed" before="-" name="nanorep.embeded.widget" as="nanorep_embeded_widget" template="nanorepwidgets/embed.phtml" />
36
  </reference>
37
  </catalog_product_view>
38
+
39
  <nanorepwidgets_index_getcustomerhistory>
40
  <block type="nanorepwidgets/adminhtml_order_grid" name="root" output="toHtml" />
41
  </nanorepwidgets_index_getcustomerhistory>
42
+
43
  <nanorepwidgets_index_getcustomerhistoryjson>
44
  <block type="nanorepwidgets/customerhistoryjson" name="root" output="toHtml"/>
45
  </nanorepwidgets_index_getcustomerhistoryjson>
46
+
47
  <nanorepwidgets_index_cdc>
48
  <block type="core/template" name="root" output="toHtml" template="nanorepwidgets/cdc.phtml" />
49
  </nanorepwidgets_index_cdc>
50
+
51
  <nanorepwidgets_account_login>
52
  <update handle="nanorepwidgets_page_empty" />
53
+ <reference name="head">
54
+ <action method="addItem"><type>skin_css</type><file>nanorepwidgets/head.css</file></action>
55
+ </reference>
56
  <reference name="content">
57
  <block type="nanorepwidgets/login" template="nanorepwidgets/login.phtml" />
58
  </reference>
59
  </nanorepwidgets_account_login>
60
+
61
  <nanorepwidgets_account_forgotpassword>
62
  <update handle="nanorepwidgets_page_empty" />
63
  <reference name="content">
64
  <block type="nanorepwidgets/forgotpassword" name="forgotPassword" template="nanorepwidgets/forgotpassword.phtml" />
65
  </reference>
66
  </nanorepwidgets_account_forgotpassword>
67
+
68
  <nanorepwidgets_order_list>
69
  <update handle="page_empty" />
70
  <remove name="nanorep_header_script" />
74
  <block type="sales/order_history" template="nanorepwidgets/order/list.phtml" />
75
  </reference>
76
  </nanorepwidgets_order_list>
77
+
78
  <contacts_index_index>
79
  <reference name="head">
80
  <action method="addItem"><type>skin_css</type><file>nanorepwidgets/contactus.css</file></action>
81
  </reference>
82
  <reference name="before_body_end">
83
  <block type="nanorepwidgets/contactus" ifconfig="nanorepwidgets/contact_us_widget/active" name="nanorep_contact_us_widget" as="nanorep.contact_us.widget" template="nanorepwidgets/contact_us.phtml" />
84
+ </reference>
85
  </contacts_index_index>
86
+
87
  <!-- Custom page layout handles -->
88
  <nanorepwidgets_page_empty translate="label">
89
  <label>All Empty Layout Pages</label>
app/design/frontend/rwd/default/layout/nanorepwidgets.xml CHANGED
@@ -1,13 +1,13 @@
1
  <?xml version="1.0"?>
2
- <!--
3
  /**
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
- * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
- */
11
  -->
12
  <layout version="0.1.0">
13
  <default>
@@ -17,15 +17,15 @@
17
  <reference name="before_body_end">
18
  <block type="nanorepwidgets/float" ifconfig="nanorepwidgets/float_widget/active" name="nanorep_float_widget" as="nanorep.float.widget" template="nanorepwidgets/float.phtml" />
19
  <block type="nanorepwidgets/events" name="nanorep_events" as="nanorep_events" template="nanorepwidgets/events.phtml" />
20
- </reference>
21
  </default>
22
-
23
  <checkout_onepage_success>
24
  <reference name="after_body_end">
25
  <block type="nanorepwidgets/success" name="nanorep_success" as="nanorep_success" template="nanorepwidgets/success.phtml" />
26
  </reference>
27
  </checkout_onepage_success>
28
-
29
  <catalog_product_view>
30
  <reference name="head">
31
  <action method="addItem"><type>skin_js</type><file>nanorepwidgets/head.js</file></action>
@@ -35,33 +35,36 @@
35
  <block type="nanorepwidgets/embed" before="-" name="nanorep.embeded.widget" as="nanorep_embeded_widget" template="nanorepwidgets/embed.phtml" />
36
  </reference>
37
  </catalog_product_view>
38
-
39
  <nanorepwidgets_index_getcustomerhistory>
40
  <block type="nanorepwidgets/adminhtml_order_grid" name="root" output="toHtml" />
41
  </nanorepwidgets_index_getcustomerhistory>
42
-
43
  <nanorepwidgets_index_getcustomerhistoryjson>
44
  <block type="nanorepwidgets/customerhistoryjson" name="root" output="toHtml"/>
45
  </nanorepwidgets_index_getcustomerhistoryjson>
46
-
47
  <nanorepwidgets_index_cdc>
48
  <block type="core/template" name="root" output="toHtml" template="nanorepwidgets/cdc.phtml" />
49
  </nanorepwidgets_index_cdc>
50
-
51
  <nanorepwidgets_account_login>
52
  <update handle="nanorepwidgets_page_empty" />
 
 
 
53
  <reference name="content">
54
  <block type="nanorepwidgets/login" template="nanorepwidgets/login.phtml" />
55
  </reference>
56
  </nanorepwidgets_account_login>
57
-
58
  <nanorepwidgets_account_forgotpassword>
59
  <update handle="nanorepwidgets_page_empty" />
60
  <reference name="content">
61
  <block type="nanorepwidgets/forgotpassword" name="forgotPassword" template="nanorepwidgets/forgotpassword.phtml" />
62
  </reference>
63
  </nanorepwidgets_account_forgotpassword>
64
-
65
  <nanorepwidgets_order_list>
66
  <update handle="page_empty" />
67
  <remove name="nanorep_header_script" />
@@ -71,16 +74,16 @@
71
  <block type="sales/order_history" template="nanorepwidgets/order/list.phtml" />
72
  </reference>
73
  </nanorepwidgets_order_list>
74
-
75
  <contacts_index_index>
76
  <reference name="head">
77
  <action method="addItem"><type>skin_css</type><file>nanorepwidgets/contactus.css</file></action>
78
  </reference>
79
  <reference name="before_body_end">
80
  <block type="nanorepwidgets/contactus" ifconfig="nanorepwidgets/contact_us_widget/active" name="nanorep_contact_us_widget" as="nanorep.contact_us.widget" template="nanorepwidgets/contact_us.phtml" />
81
- </reference>
82
  </contacts_index_index>
83
-
84
  <!-- Custom page layout handles -->
85
  <nanorepwidgets_page_empty translate="label">
86
  <label>All Empty Layout Pages</label>
1
  <?xml version="1.0"?>
2
+ <!--
3
  /**
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
+ * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
+ */
11
  -->
12
  <layout version="0.1.0">
13
  <default>
17
  <reference name="before_body_end">
18
  <block type="nanorepwidgets/float" ifconfig="nanorepwidgets/float_widget/active" name="nanorep_float_widget" as="nanorep.float.widget" template="nanorepwidgets/float.phtml" />
19
  <block type="nanorepwidgets/events" name="nanorep_events" as="nanorep_events" template="nanorepwidgets/events.phtml" />
20
+ </reference>
21
  </default>
22
+
23
  <checkout_onepage_success>
24
  <reference name="after_body_end">
25
  <block type="nanorepwidgets/success" name="nanorep_success" as="nanorep_success" template="nanorepwidgets/success.phtml" />
26
  </reference>
27
  </checkout_onepage_success>
28
+
29
  <catalog_product_view>
30
  <reference name="head">
31
  <action method="addItem"><type>skin_js</type><file>nanorepwidgets/head.js</file></action>
35
  <block type="nanorepwidgets/embed" before="-" name="nanorep.embeded.widget" as="nanorep_embeded_widget" template="nanorepwidgets/embed.phtml" />
36
  </reference>
37
  </catalog_product_view>
38
+
39
  <nanorepwidgets_index_getcustomerhistory>
40
  <block type="nanorepwidgets/adminhtml_order_grid" name="root" output="toHtml" />
41
  </nanorepwidgets_index_getcustomerhistory>
42
+
43
  <nanorepwidgets_index_getcustomerhistoryjson>
44
  <block type="nanorepwidgets/customerhistoryjson" name="root" output="toHtml"/>
45
  </nanorepwidgets_index_getcustomerhistoryjson>
46
+
47
  <nanorepwidgets_index_cdc>
48
  <block type="core/template" name="root" output="toHtml" template="nanorepwidgets/cdc.phtml" />
49
  </nanorepwidgets_index_cdc>
50
+
51
  <nanorepwidgets_account_login>
52
  <update handle="nanorepwidgets_page_empty" />
53
+ <reference name="head">
54
+ <action method="addItem"><type>skin_css</type><file>nanorepwidgets/head.css</file></action>
55
+ </reference>
56
  <reference name="content">
57
  <block type="nanorepwidgets/login" template="nanorepwidgets/login.phtml" />
58
  </reference>
59
  </nanorepwidgets_account_login>
60
+
61
  <nanorepwidgets_account_forgotpassword>
62
  <update handle="nanorepwidgets_page_empty" />
63
  <reference name="content">
64
  <block type="nanorepwidgets/forgotpassword" name="forgotPassword" template="nanorepwidgets/forgotpassword.phtml" />
65
  </reference>
66
  </nanorepwidgets_account_forgotpassword>
67
+
68
  <nanorepwidgets_order_list>
69
  <update handle="page_empty" />
70
  <remove name="nanorep_header_script" />
74
  <block type="sales/order_history" template="nanorepwidgets/order/list.phtml" />
75
  </reference>
76
  </nanorepwidgets_order_list>
77
+
78
  <contacts_index_index>
79
  <reference name="head">
80
  <action method="addItem"><type>skin_css</type><file>nanorepwidgets/contactus.css</file></action>
81
  </reference>
82
  <reference name="before_body_end">
83
  <block type="nanorepwidgets/contactus" ifconfig="nanorepwidgets/contact_us_widget/active" name="nanorep_contact_us_widget" as="nanorep.contact_us.widget" template="nanorepwidgets/contact_us.phtml" />
84
+ </reference>
85
  </contacts_index_index>
86
+
87
  <!-- Custom page layout handles -->
88
  <nanorepwidgets_page_empty translate="label">
89
  <label>All Empty Layout Pages</label>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NanoRep_Widgets_1_1_0</name>
4
- <version>2.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
7
  <channel>community</channel>
@@ -45,11 +45,11 @@ Agents get a 360&#xD;
45
  degree view of customers&#x2019; activity before&#xD;
46
  working on cases.&#xD;
47
  </description>
48
- <notes>minor fix</notes>
49
  <authors><author><name>NanoRep</name><user>avivnanore</user><email>aviv@nanorep.com</email></author></authors>
50
- <date>2015-03-02</date>
51
- <time>09:46:19</time>
52
- <contents><target name="magelocal"><dir name="NanoRep"><dir name="Widgets"><dir name="Block"><dir name="Adminhtml"><dir name="Answer"><dir name="Grid"><file name="Export.php" hash="98bed6330628da0056b9281cd0044ab1"/></dir><file name="Grid.php" hash="bda00ac3e4e1d85327eac227949e7bb5"/></dir><file name="Answer.php" hash="2c1b7c5dfdd1485b6c3cd8eb2c134bcd"/><file name="Mynanorep.php" hash="a7aea34f919bc75ca9a2d374a115b3fa"/><dir name="Order"><dir name="Grid"><file name="Export.php" hash="13bc156b3331c9b2dacde70e8483a909"/></dir><file name="Grid.php" hash="a78d4a0d35b0f1575763af33bb7c03e4"/></dir><file name="Order.php" hash="39ebfd2fe23db490046ae8e324901b72"/><dir name="System"><dir name="Config"><dir name="Form"><file name="Fields.php" hash="76cdde1a24c8348189384b278aa7480a"/></dir></dir></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><dir name="Answer"><dir name="Body"><file name="Pretty.php" hash="0a7d01f7ff96b9bace44256e82ab047e"/></dir><file name="Body.php" hash="89f497faa6a03cac040834804439a8d2"/><dir name="Title"><file name="Pretty.php" hash="b47a584daaed1c1e55545877b097f75b"/></dir><file name="Title.php" hash="115ee0a85937406fa07e8d439f1e3dbb"/></dir><dir name="Questions"><file name="Pretty.php" hash="3ffd9f82f2c5c2696eed0f35f7109b9e"/></dir><file name="Questions.php" hash="1a979d2272acde87c1e907aa29816c6c"/><dir name="Results"><file name="Pretty.php" hash="f0c8ba45e792f4cfee6ce4a22a3898fa"/></dir><file name="Results.php" hash="d08aa0325398bc23b335df26ca48c53c"/></dir></dir></dir></dir></dir><file name="Contactus.php" hash="ffd26e05d47bf36603ae6ed236a51c5e"/><file name="Customerhistoryjson.php" hash="2e6a8dc4c0e5c49639ff088ac3910009"/><file name="Embed.php" hash="c228d0d8d1dce3a975147434ef8f38ea"/><file name="Events.php" hash="5f5f965d626c8b73c072db1fca506d4c"/><file name="Float.php" hash="e51c028ad72498a96dcd1b38ae2f18f7"/><file name="Forgotpassword.php" hash="8493dab6da5c3bfcc2fee3f38bf7f1ad"/><file name="Header.php" hash="88fbe58d72982d15434f4b0d1462942e"/><file name="Login.php" hash="8bde6fc8b241e277ff4ce8b4c85b246c"/><file name="Success.php" hash="9383181f50edf203c457872412de7a0c"/></dir><dir name="Helper"><file name="Data.php" hash="7943a0d04ad961a97e0e177a2c0b44ac"/></dir><dir name="Model"><file name="Answer.php" hash="3931d7299a746e0ac90a6cae4a154982"/><file name="History.php" hash="0ffa4f8d5366abc1f7702e101cc5a90f"/><file name="Observer.php" hash="93b8b6b08dec94f56c4b122687df7f14"/><file name="Query.php" hash="c4eaf10c4bae492d782b552550570215"/><file name="Request.php" hash="aa581b40cd716654a1f71cc0fe202fcc"/><dir name="Resource"><dir name="Answer"><file name="Collection.php" hash="febae104bf1dd741119b8cf6f168b21d"/></dir><file name="Answer.php" hash="0f79604579c93d4315b62cc23d595a53"/><dir name="Query"><file name="Collection.php" hash="ab7cd2f853a4f21d216ee24748a9b1c8"/></dir><file name="Query.php" hash="ccc5ae9e2e2f144c37fef2245033911c"/><file name="Setup.php" hash="812ef9ae3c38fe84eda2c702890faac5"/></dir><file name="Session.php" hash="63b7e34c1782e8e376936e7f196b0353"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="ConversionTracking.php" hash="fd8154dd85c21be1f8e4270f21e42358"/></dir><dir name="Source"><file name="Attribute.php" hash="03529194354c0557a881305a69158fa5"/><file name="FloatWidgetActivePages.php" hash="e1f7f28f4e3e13ba13e4293eed61a943"/><file name="OrdersStatusActivePages.php" hash="f098536503386289102acfcc19d016a6"/><file name="ProductIdAttribute.php" hash="03c69b051e8ba54e47f87b6f1495c19e"/></dir></dir></dir></dir><dir name="controllers"><file name="AccountController.php" hash="77275920ac024972dc8686a7ecd30d06"/><dir name="Adminhtml"><file name="AnswerController.php" hash="c78297d83f113e8e01cc6b39158bdc66"/><file name="MynanorepController.php" hash="b411ddc154ef98ca3f568daab73fd003"/><file name="OrderController.php" hash="b5484dde49a2ebbcc8b0933bcad4c0bb"/></dir><file name="IndexController.php" hash="a88b39a8ee27925df32be3c57f95cbf6"/><file name="OrderController.php" hash="45be95b16ff3bbf928c0e8234a4a3fb2"/><file name="QueryController.php" hash="58145cd9ff89c0bc7ff078c0d11b4d83"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6b796ffd37d982a516efac2d8870c4dc"/><file name="config.xml" hash="f059fba5d9922a75344c4e89bc4ed18c"/><file name="system.xml" hash="71e4c16ef29b47b7ce53963fbf52f41b"/></dir><dir name="sql"><dir name="nanorepwidgets_setup"><file name="install-2.0.0.php" hash="df808cb581bb4e2cf8a03687c2969d1b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NanoRep_Widgets.xml" hash="4fbaad20e02fa3ed2147ba15864c3cab"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="5f391879e7c7bd0c5c81e649f9b5442a"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="contact_us.phtml" hash="6e6dda6b65f7f6fac4394b84d6ef60a3"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="empty_page.phtml" hash="bc909c2029bf6035c74b4c2c8c8c4873"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="forgotpassword.phtml" hash="8bcc9f68d8a7559930284d60d6a1b461"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="47d8d9ba7a473f879e46523258ed8576"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="5f391879e7c7bd0c5c81e649f9b5442a"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="contact_us.phtml" hash="6e6dda6b65f7f6fac4394b84d6ef60a3"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="empty_page.phtml" hash="bc909c2029bf6035c74b4c2c8c8c4873"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="forgotpassword.phtml" hash="8bcc9f68d8a7559930284d60d6a1b461"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="47d8d9ba7a473f879e46523258ed8576"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir><dir name="default"><dir name="default"><dir name="template"><dir name="nanorepwidgets"><file name="mynanorep.phtml" hash="ecdbcbdfbe5c4e4ed18aaf74492b5adb"/><dir name="system"><dir name="config"><dir name="form"><file name="fields.phtml" hash="8ee604593b10281c6bc73aca463d5529"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="341cf527d4c3eb6c452f5398d2ed7588"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="nanorepwidgets"><file name="contactus.css" hash="c019e42775bad8285f0001ba5f16398f"/><file name="head.css" hash="1779a092e2c2a771a0725e1cdd682a46"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/><dir name="images"><file name="mp_sprites.gif" hash="3f1cf238d90dd2bf737f98d04bdcde69"/></dir><file name="jsonp.js" hash="c324f25e1c9f4a434db78ee2e669553b"/></dir></dir></dir></dir></target></contents>
53
  <compatible/>
54
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
55
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NanoRep_Widgets_1_1_0</name>
4
+ <version>2.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
7
  <channel>community</channel>
45
  degree view of customers&#x2019; activity before&#xD;
46
  working on cases.&#xD;
47
  </description>
48
+ <notes>Enable head.css in login iframe</notes>
49
  <authors><author><name>NanoRep</name><user>avivnanore</user><email>aviv@nanorep.com</email></author></authors>
50
+ <date>2015-06-15</date>
51
+ <time>13:44:17</time>
52
+ <contents><target name="magelocal"><dir name="NanoRep"><dir name="Widgets"><dir name="Block"><dir name="Adminhtml"><dir name="Answer"><dir name="Grid"><file name="Export.php" hash="98bed6330628da0056b9281cd0044ab1"/></dir><file name="Grid.php" hash="bda00ac3e4e1d85327eac227949e7bb5"/></dir><file name="Answer.php" hash="2c1b7c5dfdd1485b6c3cd8eb2c134bcd"/><file name="Mynanorep.php" hash="a7aea34f919bc75ca9a2d374a115b3fa"/><dir name="Order"><dir name="Grid"><file name="Export.php" hash="13bc156b3331c9b2dacde70e8483a909"/></dir><file name="Grid.php" hash="a78d4a0d35b0f1575763af33bb7c03e4"/></dir><file name="Order.php" hash="39ebfd2fe23db490046ae8e324901b72"/><dir name="System"><dir name="Config"><dir name="Form"><file name="Fields.php" hash="76cdde1a24c8348189384b278aa7480a"/></dir></dir></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><dir name="Answer"><dir name="Body"><file name="Pretty.php" hash="0a7d01f7ff96b9bace44256e82ab047e"/></dir><file name="Body.php" hash="89f497faa6a03cac040834804439a8d2"/><dir name="Title"><file name="Pretty.php" hash="b47a584daaed1c1e55545877b097f75b"/></dir><file name="Title.php" hash="115ee0a85937406fa07e8d439f1e3dbb"/></dir><dir name="Questions"><file name="Pretty.php" hash="3ffd9f82f2c5c2696eed0f35f7109b9e"/></dir><file name="Questions.php" hash="1a979d2272acde87c1e907aa29816c6c"/><dir name="Results"><file name="Pretty.php" hash="f0c8ba45e792f4cfee6ce4a22a3898fa"/></dir><file name="Results.php" hash="d08aa0325398bc23b335df26ca48c53c"/></dir></dir></dir></dir></dir><file name="Contactus.php" hash="ffd26e05d47bf36603ae6ed236a51c5e"/><file name="Customerhistoryjson.php" hash="2e6a8dc4c0e5c49639ff088ac3910009"/><file name="Embed.php" hash="c228d0d8d1dce3a975147434ef8f38ea"/><file name="Events.php" hash="5f5f965d626c8b73c072db1fca506d4c"/><file name="Float.php" hash="e51c028ad72498a96dcd1b38ae2f18f7"/><file name="Forgotpassword.php" hash="8493dab6da5c3bfcc2fee3f38bf7f1ad"/><file name="Header.php" hash="88fbe58d72982d15434f4b0d1462942e"/><file name="Login.php" hash="8bde6fc8b241e277ff4ce8b4c85b246c"/><file name="Success.php" hash="9383181f50edf203c457872412de7a0c"/></dir><dir name="Helper"><file name="Data.php" hash="7943a0d04ad961a97e0e177a2c0b44ac"/></dir><dir name="Model"><file name="Answer.php" hash="3931d7299a746e0ac90a6cae4a154982"/><file name="History.php" hash="0ffa4f8d5366abc1f7702e101cc5a90f"/><file name="Observer.php" hash="93b8b6b08dec94f56c4b122687df7f14"/><file name="Query.php" hash="c4eaf10c4bae492d782b552550570215"/><file name="Request.php" hash="aa581b40cd716654a1f71cc0fe202fcc"/><dir name="Resource"><dir name="Answer"><file name="Collection.php" hash="febae104bf1dd741119b8cf6f168b21d"/></dir><file name="Answer.php" hash="0f79604579c93d4315b62cc23d595a53"/><dir name="Query"><file name="Collection.php" hash="ab7cd2f853a4f21d216ee24748a9b1c8"/></dir><file name="Query.php" hash="ccc5ae9e2e2f144c37fef2245033911c"/><file name="Setup.php" hash="812ef9ae3c38fe84eda2c702890faac5"/></dir><file name="Session.php" hash="63b7e34c1782e8e376936e7f196b0353"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="ConversionTracking.php" hash="fd8154dd85c21be1f8e4270f21e42358"/></dir><dir name="Source"><file name="Attribute.php" hash="03529194354c0557a881305a69158fa5"/><file name="FloatWidgetActivePages.php" hash="e1f7f28f4e3e13ba13e4293eed61a943"/><file name="OrdersStatusActivePages.php" hash="f098536503386289102acfcc19d016a6"/><file name="ProductIdAttribute.php" hash="03c69b051e8ba54e47f87b6f1495c19e"/></dir></dir></dir></dir><dir name="controllers"><file name="AccountController.php" hash="77275920ac024972dc8686a7ecd30d06"/><dir name="Adminhtml"><file name="AnswerController.php" hash="c78297d83f113e8e01cc6b39158bdc66"/><file name="MynanorepController.php" hash="b411ddc154ef98ca3f568daab73fd003"/><file name="OrderController.php" hash="b5484dde49a2ebbcc8b0933bcad4c0bb"/></dir><file name="IndexController.php" hash="a88b39a8ee27925df32be3c57f95cbf6"/><file name="OrderController.php" hash="45be95b16ff3bbf928c0e8234a4a3fb2"/><file name="QueryController.php" hash="58145cd9ff89c0bc7ff078c0d11b4d83"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6b796ffd37d982a516efac2d8870c4dc"/><file name="config.xml" hash="8a843bb6cd61c1422f473f05c1b19fe6"/><file name="system.xml" hash="71e4c16ef29b47b7ce53963fbf52f41b"/></dir><dir name="sql"><dir name="nanorepwidgets_setup"><file name="install-2.0.0.php" hash="df808cb581bb4e2cf8a03687c2969d1b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NanoRep_Widgets.xml" hash="4fbaad20e02fa3ed2147ba15864c3cab"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="b7b51b0b7f59d0935c6d38271f8ecee0"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="contact_us.phtml" hash="6e6dda6b65f7f6fac4394b84d6ef60a3"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="empty_page.phtml" hash="bc909c2029bf6035c74b4c2c8c8c4873"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="forgotpassword.phtml" hash="8bcc9f68d8a7559930284d60d6a1b461"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="47d8d9ba7a473f879e46523258ed8576"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="b7b51b0b7f59d0935c6d38271f8ecee0"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="contact_us.phtml" hash="6e6dda6b65f7f6fac4394b84d6ef60a3"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="empty_page.phtml" hash="bc909c2029bf6035c74b4c2c8c8c4873"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="forgotpassword.phtml" hash="8bcc9f68d8a7559930284d60d6a1b461"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="47d8d9ba7a473f879e46523258ed8576"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir><dir name="default"><dir name="default"><dir name="template"><dir name="nanorepwidgets"><file name="mynanorep.phtml" hash="ecdbcbdfbe5c4e4ed18aaf74492b5adb"/><dir name="system"><dir name="config"><dir name="form"><file name="fields.phtml" hash="8ee604593b10281c6bc73aca463d5529"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="341cf527d4c3eb6c452f5398d2ed7588"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="nanorepwidgets"><file name="contactus.css" hash="c019e42775bad8285f0001ba5f16398f"/><file name="head.css" hash="f6de4a017fa6b4c4b53df35dcca83e0d"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/><dir name="images"><file name="mp_sprites.gif" hash="3f1cf238d90dd2bf737f98d04bdcde69"/></dir><file name="jsonp.js" hash="c324f25e1c9f4a434db78ee2e669553b"/></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="nanorepwidgets"><file name="contactus.css" hash="c019e42775bad8285f0001ba5f16398f"/><file name="head.css" hash="9fa2f370487eaf55125bbf2aa69a44e7"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/><dir name="images"><file name="mp_sprites.gif" hash="3f1cf238d90dd2bf737f98d04bdcde69"/></dir><file name="jsonp.js" hash="c324f25e1c9f4a434db78ee2e669553b"/></dir></dir></dir></dir></target></contents>
53
  <compatible/>
54
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
55
  </package>
skin/frontend/default/default/nanorepwidgets/head.css CHANGED
@@ -17,4 +17,4 @@
17
  display: none;
18
  margin: 10px 18px;
19
  font-size: 14px;
20
- }
17
  display: none;
18
  margin: 10px 18px;
19
  font-size: 14px;
20
+ }
skin/frontend/rwd/default/nanorepwidgets/contactus.css ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .answers-popup {
2
+ background: #FFFFFF;
3
+ border: 5px solid #cccccc;
4
+ margin: 12px 0 0;
5
+ position: absolute;
6
+ text-align: left;
7
+ width: 450px;
8
+ z-index: 100;
9
+ }
10
+ @media only screen and (min-width: 771px) {
11
+ .answers-popup.answers-popup-right {
12
+ left: 10px !important;
13
+ }
14
+ .answers-popup.answers-popup-left {
15
+ left: auto !important;
16
+ right: 10px !important;
17
+ }
18
+ }
19
+ @media only screen and (max-width: 770px) {
20
+ .answers-popup {
21
+ width: 100%;
22
+ left: 0px !important;
23
+ }
24
+ }
25
+ .answers-popup .answers-popup-heading {
26
+ padding: 8px 10px;
27
+ margin-right: 40px;
28
+ width: auto;
29
+ }
30
+ .answers-popup .answers-popup-heading h3 {
31
+ font-size: 14px;
32
+ margin: 0;
33
+ overflow: hidden;
34
+ white-space: nowrap;
35
+ word-wrap: break-word;
36
+ text-align: left;
37
+ text-overflow: ellipsis;
38
+ }
39
+ @media only screen and (max-width: 479px) {
40
+ .answers-popup .answers-popup-heading h3 {
41
+ text-align: center;
42
+ }
43
+ }
44
+ .answers-popup .answers-popup-close {
45
+ display: block;
46
+ position: absolute;
47
+ top: 0px;
48
+ right: 0px;
49
+ height: 36px;
50
+ width: 36px;
51
+ font-size: 20px;
52
+ line-height: 32px;
53
+ text-align: center;
54
+ }
55
+ .answers-popup .answers-popup-content {
56
+ border-top: 1px solid #ededed;
57
+ padding: 10px;
58
+ margin: 0 10px;
59
+ overflow: hidden;
60
+ text-align: left;
61
+ }
62
+ @media only screen and (max-width: 479px) {
63
+ .answers-popup .answers-popup-content {
64
+ text-align: center;
65
+ }
66
+ }
67
+ .answers-popup .answers-popup-checkout {
68
+ padding: 10px 0;
69
+ }
70
+ .answers-popup .answers-popup-checkout form:after {
71
+ content: '';
72
+ display: table;
73
+ clear: both;
74
+ }
75
+ .answers-popup .answers-popup-checkout span {
76
+ display: block;
77
+ }
78
+ .answers-popup .answers-popup-checkout .button {
79
+ float: left;
80
+ margin: 0 2px;
81
+ clear: left;
82
+ }
83
+ .answers-popup .answers-popup-checkout .additional-addtocart-box {
84
+ float: left;
85
+ min-width: 210px;
86
+ }
87
+ .answers-popup .answers-popup-checkout .additional-addtocart-box li {
88
+ list-style-type: none;
89
+ }
90
+ .answers-popup .answers-popup-checkout .paypal-logo {
91
+ width: auto;
92
+ }
93
+ .answers-popup .answers-popup-checkout .paypal-logo a {
94
+ display: inline-block;
95
+ float: left;
96
+ clear: left;
97
+ }
98
+ .answers-popup .answers-popup-checkout .paypal-logo .paypal-or {
99
+ float: left;
100
+ text-align: center;
101
+ padding: 5px 15px;
102
+ clear: left;
103
+ }
104
+ .answers-popup .answers-popup-checkout .paypal-logo:after {
105
+ content: '';
106
+ display: table;
107
+ clear: both;
108
+ }
109
+ .answers-popup .answers-popup-checkout .paypal-logo .bml_button a {
110
+ clear: left;
111
+ }
112
+ @media only screen and (max-width: 479px) {
113
+ .answers-popup .answers-popup-checkout {
114
+ text-align: center;
115
+ }
116
+ .answers-popup .answers-popup-checkout .button,
117
+ .answers-popup .answers-popup-checkout .additional-addtocart-box,
118
+ .answers-popup .answers-popup-checkout .paypal-logo a,
119
+ .answers-popup .answers-popup-checkout .paypal-logo .paypal-or {
120
+ float: none;
121
+ }
122
+ .answers-popup .answers-popup-checkout .additional-addtocart-box {
123
+ min-width: 0px;
124
+ }
125
+ .answers-popup .answers-popup-checkout .paypal-logo .paypal-or {
126
+ margin: 0px;
127
+ margin-bottom: 10px;
128
+ }
129
+ }
130
+ .answers-popup .answers-popup-checkout:after {
131
+ content: '';
132
+ display: table;
133
+ clear: both;
134
+ }
135
+ .answers-popup .answers-popup-price {
136
+ padding: 10px 0;
137
+ }
138
+ .answers-popup .answers-popup-price .price-box,
139
+ .answers-popup .answers-popup-price .price-box .special-price {
140
+ display: inline-block;
141
+ margin: 0;
142
+ padding: 0;
143
+ }
144
+ @media only screen and (max-width: 479px) {
145
+ .answers-popup .answers-popup-price {
146
+ text-align: center;
147
+ padding-top: 0px;
148
+ }
149
+ }
150
+ .answers-popup .answers-popup-text {
151
+ padding: 10px 0;
152
+ margin: 0 10px;
153
+ word-wrap: break-word;
154
+ }
155
+ .answers-popup .answers-popup-text,
156
+ .answers-popup .answers-popup-only-text {
157
+ font-size: 12px;
158
+ /*
159
+ border-top: 1px solid #ededed;
160
+ */
161
+ }
162
+
163
+ .answers-popup .answers-popup-text h1 {
164
+ display: block;
165
+ font-size: 1em;
166
+ -webkit-margin-before: 0.67em;
167
+ -webkit-margin-after: 0.67em;
168
+ -webkit-margin-start: 0px;
169
+ -webkit-margin-end: 0px;
170
+ font-weight: bold;
171
+ }
172
+
173
+ .nanorepItem { font-size:12px; }
174
+ .nanorepItem:last-child { margin-bottom:0;}
175
+ .nanorepItem .nanorepItemTitle { font-weight:normal; font-size:14px; padding:0px 0px 5px 13px; color:#007DBF; cursor:pointer; background:url(./images/mp_sprites.gif) no-repeat 0px 5px;}
176
+ .nanorepItem .nanorepItemTitle:hover { color:#05A9FF;}
177
+ .nanorepItem.isOpen .nanorepItemTitle { color:#05A9FF; background-position:0px -300px;}
178
+ .nanorepItem .nanorepItemDescription { display:none; line-height:120%; padding:0px 0px 8px 13px;}
179
+ .nanorepItem.isOpen .nanorepItemDescription { display:block;}
180
+ .nanorepItem .nanorepItemDescription p{ padding-bottom:5px; margin:0;}
181
+ .nanorepItem .nanorepItemDescription a { color:#007DBF;}
182
+ .nanorepItem .nanorepItemDescription a:hover { color:#05A9FF;}
183
+ .nanorepItem .nanorepItemDescription iframe { border:solid 1px #6F675E;}
skin/frontend/rwd/default/nanorepwidgets/head.css ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .nR_title_cl {
2
+ background: url("https://my.nanorep.com/widget/skins/mp_sprites.png") no-repeat scroll 0 5px transparent;
3
+ padding: 0 0 0 18px;
4
+ }
5
+ .nR_title_op {
6
+ background: url("https://my.nanorep.com/widget/skins/mp_sprites.png") no-repeat scroll 0 -301px transparent;
7
+ padding: 0 0 0 18px;
8
+ }
9
+ .nR_title_text {
10
+ text-decoration: none;
11
+ font-size: 15px;
12
+ color: #090C69;
13
+ line-height: 24px;
14
+ cursor: pointer;
15
+ }
16
+ .nR_body {
17
+ display: none;
18
+ margin: 10px 18px;
19
+ font-size: 14px;
20
+ }
21
+
22
+ .block-title { display: none; }
skin/frontend/rwd/default/nanorepwidgets/head.js ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var nrServer = 'https://my.nanorep.com';
2
+
3
+ // show/hide article text
4
+ function toggleArticle(id, account, kb, _event, el)
5
+ {
6
+ // ignore event if it didnt originate from span
7
+ var e = _event || window.event;
8
+ var target = e.target || e.srcElement;
9
+ if (target.parentNode != el && target.parentNode.parentNode != el) return;
10
+
11
+ var article = document.getElementById('article_' + id);
12
+ if (article.style.display == 'block')
13
+ {
14
+ el.className = 'nR_title_cl';
15
+ article.style.display = 'none';
16
+ }
17
+ else
18
+ {
19
+ el.className = 'nR_title_op';
20
+ article.style.display = 'block';
21
+
22
+ // request img
23
+ if (!el.statsRequested)
24
+ {
25
+ var url = new Array();
26
+ url.push(nrServer);
27
+ url.push('/~');
28
+ url.push(account);
29
+ url.push('/common/API/kbExportAnswer2.gif?rnd=');
30
+ url.push(Math.floor(Math.random() * 1000000));
31
+ url.push('&a=');
32
+ url.push(id);
33
+ url.push('&account=');
34
+ url.push(account);
35
+ url.push('&kb=');
36
+ url.push(kb);
37
+
38
+ downloadImage(url.join(''));
39
+ //document.body.appendChild(img);
40
+
41
+ el.statsRequested = true;
42
+ }
43
+ }
44
+ }
45
+ function downloadImage(url)
46
+ {
47
+ var img = new Image();
48
+ img.src = url;
49
+ img.style.width = '1px';
50
+ img.style.height = '1px';
51
+ img.style.display = 'none';
52
+ }
53
+ function onloadFnc(url)
54
+ {
55
+ downloadImage(nrServer + '/common/api/statshello.gif');
56
+ }
skin/frontend/rwd/default/nanorepwidgets/images/mp_sprites.gif ADDED
Binary file
skin/frontend/rwd/default/nanorepwidgets/jsonp.js ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* JSON-P implementation for Prototype.js somewhat by Dan Dean (http://www.dandean.com)
2
+ *
3
+ * *HEAVILY* based on Tobie Langel's version: http://gist.github.com/145466.
4
+ * Might as well just call this an iteration.
5
+ *
6
+ * This version introduces:
7
+ * - Support for predefined callbacks (Necessary for OAuth signed requests, by @rboyce)
8
+ * - Partial integration with Ajax.Responders (Thanks to @sr3d for the kick in this direction)
9
+ * - Compatibility with Prototype 1.7 (Thanks to @soung3 for the bug report)
10
+ * - Will not break if page lacks a <head> element
11
+ *
12
+ * See examples in README for usage
13
+ *
14
+ * VERSION 1.1.2
15
+ *
16
+ * new Ajax.JSONRequest(url, options);
17
+ * - url (String): JSON-P endpoint url.
18
+ * - options (Object): Configuration options for the request.
19
+ */
20
+ Ajax.JSONRequest = Class.create(Ajax.Base, (function() {
21
+ var id = 0, head = document.getElementsByTagName('head')[0] || document.body;
22
+ return {
23
+ initialize: function($super, url, options) {
24
+ $super(options);
25
+ this.options.url = url;
26
+ this.options.callbackParamName = this.options.callbackParamName || 'callback';
27
+ this.options.timeout = this.options.timeout || 10; // Default timeout: 10 seconds
28
+ this.options.invokeImmediately = (!Object.isUndefined(this.options.invokeImmediately)) ? this.options.invokeImmediately : true ;
29
+
30
+ if (!Object.isUndefined(this.options.parameters) && Object.isString(this.options.parameters)) {
31
+ this.options.parameters = this.options.parameters.toQueryParams();
32
+ }
33
+
34
+ if (this.options.invokeImmediately) {
35
+ this.request();
36
+ }
37
+ },
38
+
39
+ /**
40
+ * Ajax.JSONRequest#_cleanup() -> undefined
41
+ * Cleans up after the request
42
+ **/
43
+ _cleanup: function() {
44
+ if (this.timeout) {
45
+ clearTimeout(this.timeout);
46
+ this.timeout = null;
47
+ }
48
+ if (this.transport && Object.isElement(this.transport)) {
49
+ this.transport.remove();
50
+ this.transport = null;
51
+ }
52
+ },
53
+
54
+ /**
55
+ * Ajax.JSONRequest#request() -> undefined
56
+ * Invokes the JSON-P request lifecycle
57
+ **/
58
+ request: function() {
59
+
60
+ // Define local vars
61
+ var response = new Ajax.JSONResponse(this);
62
+ var key = this.options.callbackParamName,
63
+ name = '_prototypeJSONPCallback_' + (id++),
64
+ complete = function() {
65
+ if (Object.isFunction(this.options.onComplete)) {
66
+ this.options.onComplete.call(this, response);
67
+ }
68
+ Ajax.Responders.dispatch('onComplete', this, response);
69
+ }.bind(this);
70
+
71
+ // If the callback parameter is already defined, use that
72
+ if (this.options.parameters[key] !== undefined) {
73
+ name = this.options.parameters[key];
74
+ }
75
+ // Otherwise, add callback as a parameter
76
+ else {
77
+ this.options.parameters[key] = name;
78
+ }
79
+
80
+ // Build request URL
81
+ this.options.parameters[key] = name;
82
+ var url = this.options.url + ((this.options.url.include('?') ? '&' : '?') + Object.toQueryString(this.options.parameters));
83
+
84
+ // Define callback function
85
+ window[name] = function(json) {
86
+ this._cleanup(); // Garbage collection
87
+ window[name] = undefined;
88
+
89
+ response.status = 200;
90
+ response.statusText = "OK";
91
+ response.setResponseContent(json);
92
+
93
+ if (Object.isFunction(this.options.onSuccess)) {
94
+ this.options.onSuccess.call(this, response);
95
+ }
96
+ Ajax.Responders.dispatch('onSuccess', this, response);
97
+
98
+ complete();
99
+
100
+ }.bind(this);
101
+
102
+ this.transport = new Element('script', { type: 'text/javascript', src: url });
103
+
104
+ if (Object.isFunction(this.options.onCreate)) {
105
+ this.options.onCreate.call(this, response);
106
+ }
107
+ Ajax.Responders.dispatch('onCreate', this);
108
+
109
+ head.appendChild(this.transport);
110
+
111
+ this.timeout = setTimeout(function() {
112
+ this._cleanup();
113
+ window[name] = Prototype.emptyFunction;
114
+ if (Object.isFunction(this.options.onFailure)) {
115
+ response.status = 504;
116
+ response.statusText = "Gateway Timeout";
117
+ this.options.onFailure.call(this, response);
118
+ }
119
+ complete();
120
+ }.bind(this), this.options.timeout * 1000);
121
+ },
122
+ toString: function() { return "[object Ajax.JSONRequest]"; }
123
+ };
124
+ })());
125
+
126
+ Ajax.JSONResponse = Class.create({
127
+ initialize: function(request) {
128
+ this.request = request;
129
+ },
130
+ request: undefined,
131
+ status: 0,
132
+ statusText: '',
133
+ responseJSON: undefined,
134
+ responseText: undefined,
135
+ setResponseContent: function(json) {
136
+ this.responseJSON = json;
137
+ this.responseText = Object.toJSON(json);
138
+ },
139
+ getTransport: function() {
140
+ if (this.request) return this.request.transport;
141
+ },
142
+ toString: function() { return "[object Ajax.JSONResponse]"; }
143
+ });