Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2><strong>EDIT:</strong></h2> <p>Here's the <a href="http://bugs.jqueryui.com/ticket/8484" rel="noreferrer">BugTracker ticket</a>.</p> <p>A much simpler solution is to use this snippet after including the jQuery library:</p> <pre><code>if ( $.attrFn ) { $.attrFn.text = true; } </code></pre> <h2><a href="http://jsfiddle.net/ult_combo/a8rqJ/14/" rel="noreferrer"><em>jsFiddle</em></a></h2> <p>This issue should be fixed when jQuery UI 1.8.23 is released. Credits to scott.gonzalez from the BugTracker ticket page.</p> <p><strong>EDIT</strong>: This has been fixed in <a href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js" rel="noreferrer">UI 1.8.23</a>.</p> <hr> <p><strong>My old solution:</strong><br> (use it if you have problems with the one above)</p> <p>I've made a temporary fix for this issue (until a new stable version of either UI or core is release).</p> <p>There's a bug with jQuery 1.8 interacting with jQuery UI 1.8.22 which stores the text in the parent <code>button</code>'s <code>text</code> attribute instead of creating a <code>textNode</code> inside the <code>span.ui-button-text</code>:</p> <p><img src="https://i.stack.imgur.com/CCmaQ.png" alt="enter image description here"></p> <p>Use this snippet after initializing jQuery UI <code>dialog</code>s or any other interface which has this UI button bug:</p> <pre><code>//iterate through all UI button text spans in the document $('.ui-button-text').each(function() { var $this = $(this); if ($this.text() == '') //if it has no text (bugged) $this.text($this.parent().attr('text')); //sets the text which was passed }); </code></pre> <h2><a href="http://jsfiddle.net/ult_combo/a8rqJ/13/" rel="noreferrer"><em>jsFiddle</em></a></h2> <p>The script checks if the UI button has no text before doing anything, so it's harmless to keep even if you forget it there when upgrading to future non-bugged versions of core/UI.</p> <p>If you have a better solution or information on this bug I'll glad accept it. <code>=]</code></p> <p>Note that you can downgrade to jQuery 1.7.2 or use a pre-release of UI 1.9.0 as mentioned in the question if you can't wait for a stable release and still want to use the latest stable versions.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload