diff options
author | Valerio Virgillito | 2012-03-01 17:00:24 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-03-01 17:00:24 -0800 |
commit | dd981ba7fcd85ebf2dc2d6bf539fdb37eeacd556 (patch) | |
tree | f574978953d7813886adee2b6445c549e1093908 /js/panels/properties/sections/custom-rows/single-row.reel | |
parent | 5243824bdc19fc05eccfb6b594b42788f24b3c9d (diff) | |
parent | 42d78d11764dca5df6c7d01f3221f398bee17152 (diff) | |
download | ninja-dd981ba7fcd85ebf2dc2d6bf539fdb37eeacd556.tar.gz |
Merge branch 'refs/heads/master' into stage-fixes
Diffstat (limited to 'js/panels/properties/sections/custom-rows/single-row.reel')
-rwxr-xr-x | js/panels/properties/sections/custom-rows/single-row.reel/single-row.html | 47 | ||||
-rwxr-xr-x | js/panels/properties/sections/custom-rows/single-row.reel/single-row.js | 50 |
2 files changed, 0 insertions, 97 deletions
diff --git a/js/panels/properties/sections/custom-rows/single-row.reel/single-row.html b/js/panels/properties/sections/custom-rows/single-row.reel/single-row.html deleted file mode 100755 index 27c02380..00000000 --- a/js/panels/properties/sections/custom-rows/single-row.reel/single-row.html +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> --> | ||
7 | <html lang="en"> | ||
8 | <head> | ||
9 | <script type="text/montage-serialization"> | ||
10 | { | ||
11 | "owner": { | ||
12 | "module" : "js/panels/properties/sections/custom-rows/single-row.reel", | ||
13 | "name" : "SingleRow", | ||
14 | "properties" : { | ||
15 | "element" : {"#": "section"}, | ||
16 | "slot" : {"@": "slot"} | ||
17 | } | ||
18 | }, | ||
19 | "slot": { | ||
20 | "module": "montage/ui/slot.reel", | ||
21 | "name": "Slot", | ||
22 | "properties": { | ||
23 | "element": { "#": "slotElement" } | ||
24 | }, | ||
25 | "bindings": { | ||
26 | "content" : { | ||
27 | "boundObject": {"@": "owner"}, | ||
28 | "boundObjectPropertyPath": "content" | ||
29 | } | ||
30 | } | ||
31 | } | ||
32 | } | ||
33 | </script> | ||
34 | </head> | ||
35 | <body> | ||
36 | <div id="section"> | ||
37 | <section class="fieldCol"> | ||
38 | <label><span class="lbl"></span></label> | ||
39 | <article class="fieldRow"> | ||
40 | <div id="slotElement" class="inputField"> | ||
41 | |||
42 | </div> | ||
43 | </article> | ||
44 | </section> | ||
45 | </div> | ||
46 | </body> | ||
47 | </html> \ No newline at end of file | ||
diff --git a/js/panels/properties/sections/custom-rows/single-row.reel/single-row.js b/js/panels/properties/sections/custom-rows/single-row.reel/single-row.js deleted file mode 100755 index b606d6b8..00000000 --- a/js/panels/properties/sections/custom-rows/single-row.reel/single-row.js +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | var Montage = require("montage/core/core").Montage; | ||
8 | var Component = require("montage/ui/component").Component; | ||
9 | |||
10 | exports.SingleRow = Montage.create(Component, { | ||
11 | id: { | ||
12 | value: null | ||
13 | }, | ||
14 | |||
15 | label: { | ||
16 | value: null | ||
17 | }, | ||
18 | |||
19 | content: { | ||
20 | value: null | ||
21 | }, | ||
22 | |||
23 | eventDelegate: { | ||
24 | value: null | ||
25 | }, | ||
26 | |||
27 | |||
28 | handleChange: { | ||
29 | value: function(event) { | ||
30 | } | ||
31 | }, | ||
32 | |||
33 | handleChanging: { | ||
34 | value: function(event) { | ||
35 | this.eventDelegate({"type": "changing", "id": this.id, "prop": this.prop, "text": this.label, "value": this.value}); | ||
36 | } | ||
37 | }, | ||
38 | |||
39 | divider: { | ||
40 | value: false | ||
41 | }, | ||
42 | |||
43 | prepareForDraw: { | ||
44 | value: function() { | ||
45 | if (this.divider) this.element.appendChild(document.createElement("hr")); | ||
46 | if(this.label !== null) this.element.getElementsByClassName("lbl")[0].innerHTML = this.label + ":"; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | }); \ No newline at end of file | ||