Permalink
July 30, 2013 09:54
July 30, 2013 12:54
July 30, 2013 09:54
July 30, 2013 09:54
Newer
100644
71 lines (55 sloc)
2.04 KB
7
activitypalette.ActivityPalette = function (activityButton,
8
datastoreObject) {
9
10
palette.Palette.call(this, activityButton);
19
20
containerElem.innerHTML = '<div class="row">' +
21
'<input type="text" id="title" class="expand">' +
22
'</div>' +
23
'<div class="row small">' +
24
'<label>Description:</label>' +
25
'</div>' +
26
'<div class="row expand">' +
27
'<textarea rows="8" id="description" class="expand"></textarea>' +
28
'</div>';
29
30
this.setContent([containerElem]);
31
32
this.titleElem = containerElem.querySelector('#title');
33
this.descriptionElem = containerElem.querySelector('#description');
51
// Fill the text inputs with the received metadata.
52
var setTitleDescription = function (metadata) {
54
55
if (metadata.description !== undefined) {
56
this.descriptionElem.value = metadata.description;
57
}
62
setTitleDescription: {
63
value: setTitleDescription,
64
enumerable: true,
65
configurable: true,
66
writable: true
67
}
68
});