0001-Bug-586-Fixed-the-source-field-show-hide.patch

Hector Sanjuan, 04/29/2011 05:48 PM

Download (2.53 KB)

View differences:

src/sunstone/public/js/plugins/templates-tab.js
1375 1375
					//format hidden
1376 1376
					$('#FORMAT',section_disks).parent().hide();
1377 1377
					$('#FORMAT',section_disks).parent().attr("disabled","disabled");
1378

  
1379
                    //source hidden
1380
                    $('#SOURCE',section_disks).parent().hide();
1381
                    $('#SOURCE',section_disks).parent().
1382
                                        attr("disabled","disabled");
1378 1383
					break;
1379 1384
				case "fs":
1380 1385
					//size mandatory
......
1393 1398
					$('#FORMAT',section_disks).parent().removeClass(opt_class);
1394 1399
					$('#FORMAT',section_disks).parent().addClass(man_class);
1395 1400

  
1401
                    //source hidden
1402
                    $('#SOURCE',section_disks).parent().hide();
1403
                    $('#SOURCE',section_disks).parent().
1404
                                        attr("disabled","disabled");
1396 1405
					break;
1397 1406
				case "block":
1398 1407
					//size shown and optional
......
1408 1417
					//format hidden
1409 1418
					$('#FORMAT',section_disks).parent().hide();
1410 1419
					$('#FORMAT',section_disks).parent().attr("disabled","disabled");
1420
                    
1421
                    //source hidden
1422
                    $('#SOURCE',section_disks).parent().hide();
1423
                    $('#SOURCE',section_disks).parent().
1424
                                        attr("disabled","disabled");
1411 1425
					break;
1412 1426
				case "floppy":
1413 1427
				case "disk":
......
1424 1438
					//format optional
1425 1439
				    $('#FORMAT',section_disks).parent().hide();
1426 1440
				    $('#FORMAT',section_disks).parent().attr("disabled","disabled");
1441

  
1442
                    //source shown
1443
                    $('#SOURCE',section_disks).parent().show();
1444
                    $('#SOURCE',section_disks).parent().
1445
                                        removeAttr("disabled");
1427 1446
			}
1428 1447
            //hide_disabled(section_disks);
1429 1448
		});
1430
-