Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed decorate*() js functions #3410

Merged
merged 4 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@
</tr>
<?php endfor ?>
</table>
<script type="text/javascript">decorateTable('bundle-product-table')</script>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<?php endif ?>
<?php endforeach ?>
</dl>
<script type="text/javascript">decorateDataList('narrow-by-list')</script>
<?php endif ?>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
</ol>
</dd>
</dl>
<script type="text/javascript">decorateDataList('narrow-by-list2')</script>
</div>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ $_params = $this->escapeHtml(json_encode(['form_key' => $this->getFormKey()]));
</span>
</div>
<script type="text/javascript">
decorateTable('product_comparison');

/**
* Send remove item request, after that reload windows
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ $_items = $_helper->getItemCount() > 0 ? $_helper->getItemCollection() : null;
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('compare-items')</script>
<div class="actions">
<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>
<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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>

<?php else: ?>

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

<div class="toolbar-bottom">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('block-related', 'none-recursive')</script>
</div>
<script type="text/javascript">
//<![CDATA[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@
</tr>
<?php endfor ?>
</table>
<script type="text/javascript">decorateTable('upsell-product-table')</script>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
<?php endif ?>
</div>
<script type="text/javascript">decorateGeneric($$('#product-options-wrapper dl'), ['last']);</script>
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@
<?php endif ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('super-product-table')</script>
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
this.toggleClassName('expanded');
$('<?php echo $this->getDetailsPlaceholderId() ?>').toggleClassName('no-display');
event.stop();
decorateTable('<?php echo $this->getDetailsPlaceholderId() ?>');
});
//]]>
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
</li>
<?php endforeach ?>
</ul>
<script type="text/javascript">decorateList('advanced-search-list')</script>
</div>
<div class="buttons-set">
<button type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Search')) ?>" class="button"><?php echo $this->__('Search') ?></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('shopping-cart-table')</script>
</fieldset>
</form>
<div class="cart-collaterals">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,5 @@
</li>
<?php endforeach ?>
</ul>
<script type="text/javascript">decorateList('crosssell-products-list', 'none-recursive')</script>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
<?php echo $this->getItemHtml($_item) ?>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
<?php else: ?>
<p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('multiship-addresses-table')</script>
<div class="buttons-set">
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Shopping Cart') ?></a></p>
<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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('unavailable-shipping-table')</script>
</div>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('overview-table-<?php echo $_address->getId() ?>')</script>
</div>
<?php if($this->getShippingAddressCount()!=$_index+1): ?>
<div class="divider"></div>
Expand Down Expand Up @@ -172,7 +171,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('virtual-overview-table')</script>
</div>
</div>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('shipping-table-<?php echo $_address->getId() ?>')</script>
<?php echo $this->helper('giftmessage/message')->getInline('multishipping_adress', $_address); ?>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
<li title="<?php echo $_step->getLabel() ?>"<?php if($_step->getIsActive()): ?> class="active"<?php endif ?>><span><?php echo $_step->getLabel() ?></span></li>
<?php endforeach ?>
</ul>
<script type="text/javascript">decorateGeneric($$('#checkout-progress-state li'), ['first','last']);</script>
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@
</table>
</div>
<?php echo $this->getChildHtml('items_after'); ?>
<script type="text/javascript">
//<![CDATA[
decorateTable('checkout-review-table');
truncateOptions();
//]]>
</script>
<script type="text/javascript">truncateOptions();</script>
<div id="checkout-review-submit">
<?php echo $this->getChildHtml('agreements') ?>
<div class="buttons-set" id="review-buttons-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('my-orders-table')</script>
<?php else: ?>
<p><?php echo $this->__('You have placed no orders yet.') ?></p>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('my-downloadable-products-table')</script>
<?php else: ?>
<p><?php echo Mage::helper('downloadable')->__('You have not purchased any downloadable products yet.'); ?></p>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">
//<![CDATA[
decorateTable('my-apps-table');
//]]>
</script>
<?php echo $this->getToolbarHtml() ?>
<?php else: ?>
<p><?php echo $this->__('You have no applications.'); ?></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('details-table');</script>
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('recently-compared-items');</script>
</div>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('recently-viewed-items');</script>
</div>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('my-reviews-table')</script>
<?php echo $this->getToolbarHtml() ?>
<?php else: ?>
<p><?php echo $this->__('You have submitted no reviews.') ?></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('my_recent_reviews');</script>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
</tbody>
</table>
<input type="hidden" name="validate_rating" class="validate-rating" value="" />
<script type="text/javascript">decorateTable('product-review-table')</script>
<?php endif ?>
<ul class="form-list">
<li>
Expand Down
6 changes: 0 additions & 6 deletions app/design/frontend/base/default/template/rss/list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@
</tbody>
</table>
<?php endif ?>
<script type="text/javascript">
//<![CDATA[
decorateTable('rss-table-misc');
decorateTable('rss-table-category');
//]]>
</script>
<?php else: ?>
<p><?php echo $this->__('There are no Rss Feeds'); ?></p>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('related-orders-table');</script>
<?php endif ?>
<div class="buttons-set">
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Billing Agreements') ?></a></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('billing-agreements')</script>
<?php else: ?>
<p><?php echo $this->__('There are no billing agreements yet.')?></p>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@
</tbody>
<?php endforeach ?>
</table>
<script type="text/javascript">decorateTable('my-refund-table-<?php echo $_creditmemo->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
<?php echo $this->getCommentsHtml($_creditmemo)?>
<?php endforeach ?>
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('my-orders-table');</script>
<?php echo $this->getPagerHtml(); ?>
<?php else: ?>
<p><?php echo $this->__('You have placed no orders.'); ?></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
<?php endif ?>
<?php endforeach ?>
</ul>
<script type="text/javascript">decorateGeneric($('order-info-tabs').select('LI'),['first','last']);</script>
</dd>
</dl>
<p class="order-date"><?php echo $this->__('Order Date: %s', $this->formatDate($_order->getCreatedAtStoreDate(), 'long')) ?></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@
</tbody>
<?php endforeach ?>
</table>
<script type="text/javascript">decorateTable('my-invoice-table-<?php echo $_invoice->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
<?php echo $this->getInvoiceCommentsHtml($_invoice)?>
<?php endforeach ?>
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@
</tbody>
<?php endforeach ?>
</table>
<script type="text/javascript">decorateTable('my-orders-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,4 @@
</tbody>
<?php endforeach ?>
</table>
<script type="text/javascript">decorateTable('my-orders-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
<script type="text/javascript">window.print();</script>
Loading