NewsModules_RichSnippet - Version 0.1.1

Version Notes

Fix full view of the attribute Rich Snippet Category in Manage Category.

Download this release

Release Info

Developer Alessandro Lioce
Extension NewsModules_RichSnippet
Version 0.1.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.1.1

js/newsmodules/richsnippet/adminhtml/catalog/category.js CHANGED
@@ -1,39 +1,27 @@
1
  RichSnippet_jQuery( document ).ready(function() {
2
- setTimeout(function() { NewsModules_RichSnippet_CheckReady(); }, 1000);
 
 
3
  });
4
 
5
- function NewsModules_RichSnippet_CheckReady()
6
  {
7
- if (RichSnippet_jQuery('select#group_4richsnippet_category').is('*'))
8
  {
9
- setTimeout(function() { NewsModules_RichSnippet_Init(); }, 1000);
 
 
 
 
 
 
 
 
 
 
 
 
10
  }
11
- else
12
- {
13
- setTimeout(function() { NewsModules_RichSnippet_CheckReady(); }, 1000);
14
- }
15
- }
16
-
17
- function NewsModules_RichSnippet_Init()
18
- {
19
- RichSnippet_jQuery('select#group_4richsnippet_category').focus(function() {
20
- if (!RichSnippet_jQuery(this).hasClass('ready'))
21
- {
22
- var text_node = RichSnippet_jQuery('<p />').attr('id', 'richsnippet_category_text');
23
- var node = RichSnippet_jQuery('select#group_4richsnippet_category');
24
- node.attr('size', 10).css('width', '100%');
25
- node.parent().append(text_node);
26
-
27
- node.change(function() {
28
- NewsModules_RichSnippet_DisplayCategoryName();
29
- })
30
- .keydown(function() {
31
- NewsModules_RichSnippet_DisplayCategoryName();
32
- });
33
-
34
- RichSnippet_jQuery(this).addClass('ready');
35
- }
36
- });
37
  }
38
 
39
  function NewsModules_RichSnippet_DisplayCategoryName()
1
  RichSnippet_jQuery( document ).ready(function() {
2
+ varienGlobalEvents.attachEventHandler('showTab', function() {
3
+ NewsModules_RichSnippet_Init();
4
+ });
5
  });
6
 
7
+ function NewsModules_RichSnippet_Init()
8
  {
9
+ if (!RichSnippet_jQuery('select#group_4richsnippet_category').hasClass('ready'))
10
  {
11
+ var text_node = RichSnippet_jQuery('<p />').attr('id', 'richsnippet_category_text');
12
+ var node = RichSnippet_jQuery('select#group_4richsnippet_category');
13
+ node.attr('size', 10).css('width', '100%');
14
+ node.parent().append(text_node);
15
+
16
+ node.change(function() {
17
+ NewsModules_RichSnippet_DisplayCategoryName();
18
+ })
19
+ .keydown(function() {
20
+ NewsModules_RichSnippet_DisplayCategoryName();
21
+ });
22
+
23
+ RichSnippet_jQuery('select#group_4richsnippet_category').addClass('ready');
24
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  }
26
 
27
  function NewsModules_RichSnippet_DisplayCategoryName()
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NewsModules_RichSnippet</name>
4
- <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
@@ -16,11 +16,11 @@ The "brand" meta is passed only if the product's attribute set using the product
16
  &#xD;
17
  The "category" meta is passed only if the current category has been set the attribute "Rich Snippets Category".&#xD;
18
  The items listed in this attribute are the categories used by Google.</description>
19
- <notes>Adds metadata to the products and breadcrumbs to improve indexing on search engines.</notes>
20
  <authors><author><name>Alessandro Lioce</name><user>alioce</user><email>a.lioce@ne-ws.it</email></author></authors>
21
- <date>2014-06-10</date>
22
- <time>15:16:05</time>
23
- <contents><target name="magecommunity"><dir name="NewsModules"><dir name="RichSnippet"><dir name="Helper"><file name="Copia di Data.php" hash="be6be1f187786b8b5cf1185efcc72fd6"/><file name="Data.php" hash="b88b2bec7bf1586e31bb51de1ddd0383"/></dir><dir name="Model"><dir name="Entity"><dir name="Attribute"><dir name="Source"><file name="Category.php" hash="f82f3126521aa6d2744df3cd3158eb2d"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="255a542deeec2d4c70073b80427fb019"/></dir><dir name="sql"><dir name="richsnippet_setup"><file name="mysql4-install-0.1.0.php" hash="f10f6a9ef680bf19d24520c6dbcf402a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NewsModules_RichSnippet.xml" hash="d422846758fa0117ea973488b366a8ca"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="richsnippet.xml" hash="d09d63ce504e84bf9049f8683f6333dc"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="richsnippet.xml" hash="7dfe678289ad761025473b38c48577c7"/></dir><dir name="template"><dir name="richsnippet"><dir><dir name="bundle"><dir name="catalog"><dir name="product"><file name="price.phtml" hash="6e4f235b27905fb8fdf33db30cfd320d"/></dir></dir></dir><dir name="catalog"><dir name="product"><file name="price.phtml" hash="dedc2a7f819b5a0e4473f60ea604d82c"/><dir name="view"><file name="media.phtml" hash="494023355b297abce31371c0749c0bfe"/><dir name="type"><dir name="availability"><file name="default.phtml" hash="60a9ee05bbd8d4e58776f0b348304b34"/><file name="grouped.phtml" hash="4a3a1cc12d528a057dd91a7d5a337008"/></dir></dir></dir><file name="view.phtml" hash="ce115b4d74f2d34c281e6d54c747ebc0"/></dir></dir><dir name="page"><dir name="html"><file name="breadcrumbs.phtml" hash="5b393d6be60c96b9cb2564498a1c60c6"/></dir></dir><dir name="product"><file name="offer.phtml" hash="3c205b858342cc81b2d02fb15b3d6de1"/></dir></dir><file name="product.phtml" hash="15d55996dd9c9a01b53df12045208412"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="newsmodules"><dir name="richsnippet"><dir name="adminhtml"><dir name="catalog"><file name="category.js" hash="7cdeaa42d2ebe3413dea8469c30546c4"/></dir></dir><file name="jquery-1.11.1.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-noconflict.js" hash="42b1d039453c297cca03ae96c875fb7b"/></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.2.13</min><max>5.4.29</max></php><package><name></name><channel>connect.magentocommerce.com/core</channel><min></min><max></max></package></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NewsModules_RichSnippet</name>
4
+ <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
16
  &#xD;
17
  The "category" meta is passed only if the current category has been set the attribute "Rich Snippets Category".&#xD;
18
  The items listed in this attribute are the categories used by Google.</description>
19
+ <notes>Fix full view of the attribute Rich Snippet Category in Manage Category.</notes>
20
  <authors><author><name>Alessandro Lioce</name><user>alioce</user><email>a.lioce@ne-ws.it</email></author></authors>
21
+ <date>2014-06-11</date>
22
+ <time>09:08:55</time>
23
+ <contents><target name="magecommunity"><dir name="NewsModules"><dir name="RichSnippet"><dir name="Helper"><file name="Copia di Data.php" hash="be6be1f187786b8b5cf1185efcc72fd6"/><file name="Data.php" hash="b88b2bec7bf1586e31bb51de1ddd0383"/></dir><dir name="Model"><dir name="Entity"><dir name="Attribute"><dir name="Source"><file name="Category.php" hash="f82f3126521aa6d2744df3cd3158eb2d"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="255a542deeec2d4c70073b80427fb019"/></dir><dir name="sql"><dir name="richsnippet_setup"><file name="mysql4-install-0.1.0.php" hash="f10f6a9ef680bf19d24520c6dbcf402a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NewsModules_RichSnippet.xml" hash="d422846758fa0117ea973488b366a8ca"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="richsnippet.xml" hash="d09d63ce504e84bf9049f8683f6333dc"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="richsnippet.xml" hash="7dfe678289ad761025473b38c48577c7"/></dir><dir name="template"><dir name="richsnippet"><dir><dir name="bundle"><dir name="catalog"><dir name="product"><file name="price.phtml" hash="6e4f235b27905fb8fdf33db30cfd320d"/></dir></dir></dir><dir name="catalog"><dir name="product"><file name="price.phtml" hash="dedc2a7f819b5a0e4473f60ea604d82c"/><dir name="view"><file name="media.phtml" hash="494023355b297abce31371c0749c0bfe"/><dir name="type"><dir name="availability"><file name="default.phtml" hash="60a9ee05bbd8d4e58776f0b348304b34"/><file name="grouped.phtml" hash="4a3a1cc12d528a057dd91a7d5a337008"/></dir></dir></dir><file name="view.phtml" hash="ce115b4d74f2d34c281e6d54c747ebc0"/></dir></dir><dir name="page"><dir name="html"><file name="breadcrumbs.phtml" hash="5b393d6be60c96b9cb2564498a1c60c6"/></dir></dir><dir name="product"><file name="offer.phtml" hash="3c205b858342cc81b2d02fb15b3d6de1"/></dir></dir><file name="product.phtml" hash="15d55996dd9c9a01b53df12045208412"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="newsmodules"><dir name="richsnippet"><dir name="adminhtml"><dir name="catalog"><file name="category.js" hash="337e50bb7674d14f4efda5de2075f2e1"/></dir></dir><file name="jquery-1.11.1.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-noconflict.js" hash="42b1d039453c297cca03ae96c875fb7b"/></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.2.13</min><max>5.4.29</max></php><package><name></name><channel>connect.magentocommerce.com/core</channel><min></min><max></max></package></required></dependencies>
26
  </package>