Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | |
michael@0 | 3 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 6 | |
michael@0 | 7 | <!-- When not in use, make sure you disable this or it will run continuously |
michael@0 | 8 | in the background sucking up cpu. --> |
michael@0 | 9 | <bindings |
michael@0 | 10 | xmlns="http://www.mozilla.org/xbl" |
michael@0 | 11 | xmlns:xbl="http://www.mozilla.org/xbl" |
michael@0 | 12 | xmlns:html="http://www.w3.org/1999/xhtml" |
michael@0 | 13 | xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 14 | <binding id="cssthrobberBinding" extends="xul:box"> |
michael@0 | 15 | <content> |
michael@0 | 16 | <html:div anonid="container" id="container" class="progressContainer"> |
michael@0 | 17 | <html:div class="progressBall" /> |
michael@0 | 18 | <html:div class="progressBall" /> |
michael@0 | 19 | <html:div class="progressBall" /> |
michael@0 | 20 | <html:div class="progressBall" /> |
michael@0 | 21 | <html:div class="progressBall" /> |
michael@0 | 22 | </html:div> |
michael@0 | 23 | </content> |
michael@0 | 24 | <implementation> |
michael@0 | 25 | <field name="container" readonly="true">document.getAnonymousElementByAttribute(this, "anonid", "container");</field> |
michael@0 | 26 | <property name="enabled"> |
michael@0 | 27 | <setter> |
michael@0 | 28 | <![CDATA[ |
michael@0 | 29 | if (val) { |
michael@0 | 30 | this.container.setAttribute("enabled", true); |
michael@0 | 31 | } else { |
michael@0 | 32 | this.container.removeAttribute("enabled"); |
michael@0 | 33 | } |
michael@0 | 34 | return val; |
michael@0 | 35 | ]]> |
michael@0 | 36 | </setter> |
michael@0 | 37 | </property> |
michael@0 | 38 | </implementation> |
michael@0 | 39 | </binding> |
michael@0 | 40 | </bindings> |