Skip to content

Commit abf4ef9

Browse files
authored
Removed decorate*() js functions (#3410)
1 parent 11b7fd4 commit abf4ef9

File tree

109 files changed

+3
-238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+3
-238
lines changed

app/design/frontend/base/default/template/bundle/catalog/product/list/partof.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,5 @@
3636
</tr>
3737
<?php endfor ?>
3838
</table>
39-
<script type="text/javascript">decorateTable('bundle-product-table')</script>
4039
</div>
4140
<?php endif ?>

app/design/frontend/base/default/template/catalog/layer/view.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
<?php endif ?>
4242
<?php endforeach ?>
4343
</dl>
44-
<script type="text/javascript">decorateDataList('narrow-by-list')</script>
4544
<?php endif ?>
4645
</div>
4746
</div>

app/design/frontend/base/default/template/catalog/navigation/left.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
</ol>
4343
</dd>
4444
</dl>
45-
<script type="text/javascript">decorateDataList('narrow-by-list2')</script>
4645
</div>
4746
</div>
4847
<?php endif ?>

app/design/frontend/base/default/template/catalog/product/compare/list.phtml

-2
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ $_params = $this->escapeHtml(json_encode(['form_key' => $this->getFormKey()]));
167167
</span>
168168
</div>
169169
<script type="text/javascript">
170-
decorateTable('product_comparison');
171-
172170
/**
173171
* Send remove item request, after that reload windows
174172
*/

app/design/frontend/base/default/template/catalog/product/compare/sidebar.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ $_items = $_helper->getItemCount() > 0 ? $_helper->getItemCollection() : null;
3838
</li>
3939
<?php endforeach ?>
4040
</ol>
41-
<script type="text/javascript">decorateList('compare-items')</script>
4241
<div class="actions">
4342
<a href="<?php echo $_helper->getClearListUrl() ?>" onclick="return confirm('<?php echo Mage::helper('core')->quoteEscape($this->__('Are you sure you would like to remove all products from your comparison?')) ?>');"><?php echo $this->__('Clear All') ?></a>
4443
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Compare')) ?>" class="button" onclick="popWin('<?php echo $_helper->getListUrl() ?>','compare','top:0,left:0,width=820,height=600,resizable=yes,scrollbars=yes')"><?php echo $this->__('Compare') ?></button>

app/design/frontend/base/default/template/catalog/product/list.phtml

-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
</li>
9595
<?php endforeach ?>
9696
</ol>
97-
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
9897

9998
<?php else: ?>
10099

@@ -155,7 +154,6 @@
155154
</ul>
156155
<?php endif ?>
157156
<?php endforeach ?>
158-
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
159157
<?php endif ?>
160158

161159
<div class="toolbar-bottom">

app/design/frontend/base/default/template/catalog/product/list/related.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
</li>
4949
<?php endforeach ?>
5050
</ol>
51-
<script type="text/javascript">decorateList('block-related', 'none-recursive')</script>
5251
</div>
5352
<script type="text/javascript">
5453
//<![CDATA[

app/design/frontend/base/default/template/catalog/product/list/upsell.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,5 @@
3636
</tr>
3737
<?php endfor ?>
3838
</table>
39-
<script type="text/javascript">decorateTable('upsell-product-table')</script>
4039
</div>
4140
<?php endif ?>

app/design/frontend/base/default/template/catalog/product/view/attributes.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,4 @@
3737
<?php endforeach ?>
3838
</tbody>
3939
</table>
40-
<script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
4140
<?php endif ?>

app/design/frontend/base/default/template/catalog/product/view/options/wrapper.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@
1919
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
2020
<?php endif ?>
2121
</div>
22-
<script type="text/javascript">decorateGeneric($$('#product-options-wrapper dl'), ['last']);</script>

app/design/frontend/base/default/template/catalog/product/view/type/grouped.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,3 @@
7979
<?php endif ?>
8080
</tbody>
8181
</table>
82-
<script type="text/javascript">decorateTable('super-product-table')</script>

app/design/frontend/base/default/template/catalog/product/widget/new/column/new_default_list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
</li>
3939
<?php endforeach ?>
4040
</ol>
41-
<script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
4241
</div>
4342
</div>
4443
</div>

app/design/frontend/base/default/template/catalog/product/widget/new/column/new_images_list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
</li>
3030
<?php endforeach ?>
3131
</ol>
32-
<script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
3332
</div>
3433
</div>
3534
</div>

app/design/frontend/base/default/template/catalog/product/widget/new/column/new_names_list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
</li>
3030
<?php endforeach ?>
3131
</ol>
32-
<script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
3332
</div>
3433
</div>
3534
</div>

app/design/frontend/base/default/template/cataloginventory/stockqty/composite.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
this.toggleClassName('expanded');
4949
$('<?php echo $this->getDetailsPlaceholderId() ?>').toggleClassName('no-display');
5050
event.stop();
51-
decorateTable('<?php echo $this->getDetailsPlaceholderId() ?>');
5251
});
5352
//]]>
5453
</script>

app/design/frontend/base/default/template/catalogsearch/advanced/form.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
</li>
7373
<?php endforeach ?>
7474
</ul>
75-
<script type="text/javascript">decorateList('advanced-search-list')</script>
7675
</div>
7776
<div class="buttons-set">
7877
<button type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Search')) ?>" class="button"><?php echo $this->__('Search') ?></button>

app/design/frontend/base/default/template/checkout/cart.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
<?php endforeach ?>
101101
</tbody>
102102
</table>
103-
<script type="text/javascript">decorateTable('shopping-cart-table')</script>
104103
</fieldset>
105104
</form>
106105
<div class="cart-collaterals">

app/design/frontend/base/default/template/checkout/cart/crosssell.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,5 @@
7171
</li>
7272
<?php endforeach ?>
7373
</ul>
74-
<script type="text/javascript">decorateList('crosssell-products-list', 'none-recursive')</script>
7574
</div>
7675
<?php endif ?>

app/design/frontend/base/default/template/checkout/cart/sidebar.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
<?php echo $this->getItemHtml($_item) ?>
6161
<?php endforeach ?>
6262
</ol>
63-
<script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
6463
<?php else: ?>
6564
<p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
6665
<?php endif ?>

app/design/frontend/base/default/template/checkout/multishipping/addresses.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
<?php endforeach ?>
6868
</tbody>
6969
</table>
70-
<script type="text/javascript">decorateTable('multiship-addresses-table')</script>
7170
<div class="buttons-set">
7271
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Shopping Cart') ?></a></p>
7372
<button type="submit" data-action="checkout-continue-shipping" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue to Shipping Information')) ?>" class="button<?php if ($this->isContinueDisabled()):?> disabled<?php endif ?>" onclick="$('can_continue_flag').value=1"<?php if ($this->isContinueDisabled()):?> disabled="disabled"<?php endif ?>><?php echo $this->__('Continue to Shipping Information') ?></button>

app/design/frontend/base/default/template/checkout/multishipping/billing/items.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<?php endforeach ?>
3838
</tbody>
3939
</table>
40-
<script type="text/javascript">decorateTable('unavailable-shipping-table')</script>
4140
</div>
4241
</div>
4342
<?php endif ?>

app/design/frontend/base/default/template/checkout/multishipping/overview.phtml

-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
<?php endforeach ?>
123123
</tbody>
124124
</table>
125-
<script type="text/javascript">decorateTable('overview-table-<?php echo $_address->getId() ?>')</script>
126125
</div>
127126
<?php if($this->getShippingAddressCount()!=$_index+1): ?>
128127
<div class="divider"></div>
@@ -172,7 +171,6 @@
172171
<?php endforeach ?>
173172
</tbody>
174173
</table>
175-
<script type="text/javascript">decorateTable('virtual-overview-table')</script>
176174
</div>
177175
</div>
178176
<?php endif ?>

app/design/frontend/base/default/template/checkout/multishipping/shipping.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
<?php endforeach ?>
106106
</tbody>
107107
</table>
108-
<script type="text/javascript">decorateTable('shipping-table-<?php echo $_address->getId() ?>')</script>
109108
<?php echo $this->helper('giftmessage/message')->getInline('multishipping_adress', $_address); ?>
110109
</div>
111110
</div>

app/design/frontend/base/default/template/checkout/multishipping/state.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@
2525
<li title="<?php echo $_step->getLabel() ?>"<?php if($_step->getIsActive()): ?> class="active"<?php endif ?>><span><?php echo $_step->getLabel() ?></span></li>
2626
<?php endforeach ?>
2727
</ul>
28-
<script type="text/javascript">decorateGeneric($$('#checkout-progress-state li'), ['first','last']);</script>

app/design/frontend/base/default/template/checkout/onepage/review/info.phtml

+1-6
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@
5050
</table>
5151
</div>
5252
<?php echo $this->getChildHtml('items_after'); ?>
53-
<script type="text/javascript">
54-
//<![CDATA[
55-
decorateTable('checkout-review-table');
56-
truncateOptions();
57-
//]]>
58-
</script>
53+
<script type="text/javascript">truncateOptions();</script>
5954
<div id="checkout-review-submit">
6055
<?php echo $this->getChildHtml('agreements') ?>
6156
<div class="buttons-set" id="review-buttons-container">

app/design/frontend/base/default/template/customer/orders.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
<?php endforeach ?>
4646
</tbody>
4747
</table>
48-
<script type="text/javascript">decorateTable('my-orders-table')</script>
4948
<?php else: ?>
5049
<p><?php echo $this->__('You have placed no orders yet.') ?></p>
5150
<?php endif ?>

app/design/frontend/base/default/template/downloadable/customer/products/list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
<?php endforeach ?>
5353
</tbody>
5454
</table>
55-
<script type="text/javascript">decorateTable('my-downloadable-products-table')</script>
5655
<?php else: ?>
5756
<p><?php echo Mage::helper('downloadable')->__('You have not purchased any downloadable products yet.'); ?></p>
5857
<?php endif ?>

app/design/frontend/base/default/template/oauth/customer/token/list.phtml

-5
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@
5050
<?php endforeach ?>
5151
</tbody>
5252
</table>
53-
<script type="text/javascript">
54-
//<![CDATA[
55-
decorateTable('my-apps-table');
56-
//]]>
57-
</script>
5853
<?php echo $this->getToolbarHtml() ?>
5954
<?php else: ?>
6055
<p><?php echo $this->__('You have no applications.'); ?></p>

app/design/frontend/base/default/template/paypal/express/review/details.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@
5050
<?php endforeach ?>
5151
</tbody>
5252
</table>
53-
<script type="text/javascript">decorateTable('details-table');</script>

app/design/frontend/base/default/template/reports/product_compared.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
</li>
2828
<?php endforeach ?>
2929
</ol>
30-
<script type="text/javascript">decorateList('recently-compared-items');</script>
3130
</div>
3231
</div>
3332
<?php endif ?>

app/design/frontend/base/default/template/reports/product_viewed.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
</li>
2828
<?php endforeach ?>
2929
</ol>
30-
<script type="text/javascript">decorateList('recently-viewed-items');</script>
3130
</div>
3231
</div>
3332
<?php endif ?>

app/design/frontend/base/default/template/reports/widget/compared/column/compared_default_list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
</li>
3838
<?php endforeach ?>
3939
</ol>
40-
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
4140
</div>
4241
</div>
4342
</div>

app/design/frontend/base/default/template/reports/widget/compared/column/compared_images_list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
</li>
2929
<?php endforeach ?>
3030
</ol>
31-
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
3231
</div>
3332
</div>
3433
</div>

app/design/frontend/base/default/template/reports/widget/compared/column/compared_names_list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
</li>
2929
<?php endforeach ?>
3030
</ol>
31-
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
3231
</div>
3332
</div>
3433
</div>

app/design/frontend/base/default/template/reports/widget/viewed/column/viewed_default_list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
</li>
4343
<?php endforeach ?>
4444
</ol>
45-
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
4645
</div>
4746
</div>
4847
</div>

app/design/frontend/base/default/template/reports/widget/viewed/column/viewed_images_list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
</li>
3434
<?php endforeach ?>
3535
</ol>
36-
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
3736
</div>
3837
</div>
3938
</div>

app/design/frontend/base/default/template/reports/widget/viewed/column/viewed_names_list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
</li>
3434
<?php endforeach ?>
3535
</ol>
36-
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
3736
</div>
3837
</div>
3938
</div>

app/design/frontend/base/default/template/review/customer/list.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
<?php endforeach ?>
4444
</tbody>
4545
</table>
46-
<script type="text/javascript">decorateTable('my-reviews-table')</script>
4746
<?php echo $this->getToolbarHtml() ?>
4847
<?php else: ?>
4948
<p><?php echo $this->__('You have submitted no reviews.') ?></p>

app/design/frontend/base/default/template/review/customer/recent.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@
3838
</li>
3939
<?php endforeach ?>
4040
</ol>
41-
<script type="text/javascript">decorateList('my_recent_reviews');</script>
4241
</div>
4342
<?php endif ?>

app/design/frontend/base/default/template/review/form.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
</tbody>
5454
</table>
5555
<input type="hidden" name="validate_rating" class="validate-rating" value="" />
56-
<script type="text/javascript">decorateTable('product-review-table')</script>
5756
<?php endif ?>
5857
<ul class="form-list">
5958
<li>

app/design/frontend/base/default/template/rss/list.phtml

-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@
6262
</tbody>
6363
</table>
6464
<?php endif ?>
65-
<script type="text/javascript">
66-
//<![CDATA[
67-
decorateTable('rss-table-misc');
68-
decorateTable('rss-table-category');
69-
//]]>
70-
</script>
7165
<?php else: ?>
7266
<p><?php echo $this->__('There are no Rss Feeds'); ?></p>
7367
<?php endif ?>

app/design/frontend/base/default/template/sales/billing/agreement/view.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
<?php endforeach ?>
9292
</tbody>
9393
</table>
94-
<script type="text/javascript">decorateTable('related-orders-table');</script>
9594
<?php endif ?>
9695
<div class="buttons-set">
9796
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Billing Agreements') ?></a></p>

app/design/frontend/base/default/template/sales/billing/agreements.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
<?php endforeach ?>
5555
</tbody>
5656
</table>
57-
<script type="text/javascript">decorateTable('billing-agreements')</script>
5857
<?php else: ?>
5958
<p><?php echo $this->__('There are no billing agreements yet.')?></p>
6059
<?php endif ?>

app/design/frontend/base/default/template/sales/order/creditmemo/items.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,5 @@
4949
</tbody>
5050
<?php endforeach ?>
5151
</table>
52-
<script type="text/javascript">decorateTable('my-refund-table-<?php echo $_creditmemo->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
5352
<?php echo $this->getCommentsHtml($_creditmemo)?>
5453
<?php endforeach ?>

app/design/frontend/base/default/template/sales/order/history.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
<?php endforeach ?>
5858
</tbody>
5959
</table>
60-
<script type="text/javascript">decorateTable('my-orders-table');</script>
6160
<?php echo $this->getPagerHtml(); ?>
6261
<?php else: ?>
6362
<p><?php echo $this->__('You have placed no orders.'); ?></p>

app/design/frontend/base/default/template/sales/order/info.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
<?php endif ?>
3535
<?php endforeach ?>
3636
</ul>
37-
<script type="text/javascript">decorateGeneric($('order-info-tabs').select('LI'),['first','last']);</script>
3837
</dd>
3938
</dl>
4039
<p class="order-date"><?php echo $this->__('Order Date: %s', $this->formatDate($_order->getCreatedAtStoreDate(), 'long')) ?></p>

app/design/frontend/base/default/template/sales/order/invoice/items.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,5 @@
4545
</tbody>
4646
<?php endforeach ?>
4747
</table>
48-
<script type="text/javascript">decorateTable('my-invoice-table-<?php echo $_invoice->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
4948
<?php echo $this->getInvoiceCommentsHtml($_invoice)?>
5049
<?php endforeach ?>

app/design/frontend/base/default/template/sales/order/items.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,3 @@
5555
</tbody>
5656
<?php endforeach ?>
5757
</table>
58-
<script type="text/javascript">decorateTable('my-orders-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>

app/design/frontend/base/default/template/sales/order/print.phtml

-1
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,4 @@
7070
</tbody>
7171
<?php endforeach ?>
7272
</table>
73-
<script type="text/javascript">decorateTable('my-orders-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
7473
<script type="text/javascript">window.print();</script>

0 commit comments

Comments
 (0)