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