226
226
clean_display: function() {
227
227
this.fieldNode.empty();
228
this.fieldNode = Y.Node.create("<div />")
229
.set('text', '[No parent for this series yet!]');
228
this.fieldNode.append(Y.Node.create("<div />")
229
.set('text', '[No parent for this series yet!]'));
256
* Helper method to create a select widget from a list and add it
259
* @method build_selector
261
build_selector: function(node, res_list, class_name) {
262
var select = Y.Node.create('<select disabled="disabled"/>')
265
select.appendChild('<option />').set('text', choice)
267
node.one('td.'+class_name).append(select);
268
node.one('input').on('click', function(e) {
269
var select = node.one('td.'+class_name).one('select');
270
if (select.hasAttribute('disabled')) {
271
select.removeAttribute('disabled');
274
select.setAttribute('disabled', 'disabled');
256
280
* Build a select widget from a list retrieved from the api.
258
282
* @method build_select
260
284
build_select: function(node, class_name, path) {
262
287
success: function(res_list) {
263
var select = Y.Node.create('<select disabled="disabled"/>')
266
select.appendChild('<option />').set('text', choice)
268
node.one('td.'+class_name).append(select);
269
node.one('input').on('click', function(e) {
270
var select = node.one('td.'+class_name).one('select');
271
if (select.hasAttribute('disabled')) {
272
select.removeAttribute('disabled');
275
select.setAttribute('disabled', 'disabled');
288
self.build_selector(node, res_list, class_name);
280
290
failure: function() {
281
291
var failed_node = Y.Node.create('<span />')
599
609
clean_display: function() {
600
610
this.fieldNode.empty();
601
this.fieldNode = Y.Node.create("<div />")
602
.set('text', '[No architectures to select from yet!]');
611
this.fieldNode.append(Y.Node.create("<div />")
612
.set('text', '[No architectures to select from yet!]'));
925
935
clean_display: function() {
926
936
this.fieldNode.empty();
927
this.fieldNode = Y.Node.create("<div />")
928
.set('text', '[No package sets to select from yet!]');
937
this.fieldNode.append(Y.Node.create("<div />")
938
.set('text', '[No package sets to select from yet!]'));
1145
1155
"Copy Source and Rebuild")
1148
1159
var parent = this.deriveFromChoice.get("value");
1149
1160
this.client.named_post(
1150
parent, "deriveDistroSeries", config);
1161
this.context.self_link, "deriveDistroSeries", config);