Revision af70d862

View differences:

src/sunstone/public/js/plugins/templates-tab.js
1349 1349
					//format hidden
1350 1350
					$('#FORMAT',section_disks).parent().hide();
1351 1351
					$('#FORMAT',section_disks).parent().attr("disabled","disabled");
1352

  
1353
                    //source hidden
1354
                    $('#SOURCE',section_disks).parent().hide();
1355
                    $('#SOURCE',section_disks).parent().
1356
                                        attr("disabled","disabled");
1352 1357
					break;
1353 1358
				case "fs":
1354 1359
					//size mandatory
......
1367 1372
					$('#FORMAT',section_disks).parent().removeClass(opt_class);
1368 1373
					$('#FORMAT',section_disks).parent().addClass(man_class);
1369 1374

  
1375
                    //source hidden
1376
                    $('#SOURCE',section_disks).parent().hide();
1377
                    $('#SOURCE',section_disks).parent().
1378
                                        attr("disabled","disabled");
1370 1379
					break;
1371 1380
				case "block":
1372 1381
					//size shown and optional
......
1382 1391
					//format hidden
1383 1392
					$('#FORMAT',section_disks).parent().hide();
1384 1393
					$('#FORMAT',section_disks).parent().attr("disabled","disabled");
1394
                    
1395
                    //source hidden
1396
                    $('#SOURCE',section_disks).parent().hide();
1397
                    $('#SOURCE',section_disks).parent().
1398
                                        attr("disabled","disabled");
1385 1399
					break;
1386 1400
				case "floppy":
1387 1401
				case "disk":
......
1398 1412
					//format optional
1399 1413
				    $('#FORMAT',section_disks).parent().hide();
1400 1414
				    $('#FORMAT',section_disks).parent().attr("disabled","disabled");
1415

  
1416
                    //source shown
1417
                    $('#SOURCE',section_disks).parent().show();
1418
                    $('#SOURCE',section_disks).parent().
1419
                                        removeAttr("disabled");
1401 1420
			}
1402 1421
            //hide_disabled(section_disks);
1403 1422
		});

Also available in: Unified diff