Permalink
Browse files

fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http:/…

  • Loading branch information...
1 parent 339993b commit 03e047faaaa590e77b96c1b1e05947e422ea3e2c @haraldpdl haraldpdl committed Aug 14, 2012
Showing with 12 additions and 2 deletions.
  1. +6 −1 catalog/admin/includes/template_top.php
  2. +6 −1 catalog/includes/template_top.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2010 osCommerce
+ Copyright (c) 2012 osCommerce
Released under the GNU General Public License
*/
@@ -22,6 +22,11 @@
<script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.8.0.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.22.min.js'); ?>"></script>
+<script type="text/javascript">
+// fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484
+if ( $.attrFn ) { $.attrFn.text = true; }
+</script>
+
<?php
if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {
?>
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2010 osCommerce
+ Copyright (c) 2012 osCommerce
Released under the GNU General Public License
*/
@@ -30,6 +30,11 @@
<script type="text/javascript" src="ext/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.22.min.js"></script>
+<script type="text/javascript">
+// fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484
+if ( $.attrFn ) { $.attrFn.text = true; }
+</script>
+
<?php
if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {
?>

0 comments on commit 03e047f

Please sign in to comment.