summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/projectconf.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/projectconf.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/projectconf.html40
1 files changed, 27 insertions, 13 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html
index 8b609adb64..01ece24511 100644
--- a/bitbake/lib/toaster/toastergui/templates/projectconf.html
+++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html
@@ -690,24 +690,38 @@
690 $("#change-package_classes-form").slideDown(); 690 $("#change-package_classes-form").slideDown();
691 691
692 // initialize the pulldown and checkboxes 692 // initialize the pulldown and checkboxes
693 var value = document.getElementById("package_classes").innerHTML; 693 var value = $("#package_classes").text();
694 if (0 == value.indexOf("package_deb")) { 694 if ( value.indexOf("package_deb") == 0 ) {
695 $('select').selectedIndex = 0; 695 $("#package_classes-select").prop('selectedIndex', 0);
696 updatePackageClassCheckboxes(); 696 updatePackageClassCheckboxes();
697 if (0 < value.indexOf("package_ipk")) {document.getElementById("package_class_1_input").checked = true}; 697 if ( value.indexOf("_ipk") > 0 ) {
698 if (0 < value.indexOf("package_rpm")) {document.getElementById("package_class_2_input").checked = true}; 698 $("#package_class_1_input").attr("checked",true);
699 }
700 if ( value.indexOf("_rpm") > 0 ) {
701 $("#package_class_2_input").attr("checked",true);
702 }
699 } 703 }
700 if (0 == value.indexOf("package_ipk")) { 704
701 $('select').selectedIndex = 1; 705 if ( value.indexOf("package_ipk") == 0 ) {
706 $("#package_classes-select").prop('selectedIndex', 1);
702 updatePackageClassCheckboxes(); 707 updatePackageClassCheckboxes();
703 if (0 < value.indexOf("package_deb")) {document.getElementById("package_class_1_input").checked = true;}; 708 if ( value.indexOf("_deb") > 0 ) {
704 if (0 < value.indexOf("package_rpm")) {document.getElementById("package_class_2_input").checked = true;}; 709 $("#package_class_1_input").attr("checked",true);
710 }
711 if ( value.indexOf("_rpm") > 0 ) {
712 $("#package_class_2_input").attr("checked",true);
713 }
705 } 714 }
706 if (0 == value.indexOf("package_rpm")) { 715
707 $('select').selectedIndex = 2; 716 if ( value.indexOf("package_rpm") == 0 ) {
717 $("#package_classes-select").prop('selectedIndex', 2);
708 updatePackageClassCheckboxes(); 718 updatePackageClassCheckboxes();
709 if (0 < value.indexOf("package_deb")) {document.getElementById("#package_class_1_input").checked = true;}; 719 if ( value.indexOf("_deb") > 0 ) {
710 if (0 < value.indexOf("package_ipk")) {document.getElementById("#package_class_2_input").checked = true;}; 720 $("#package_class_1_input").attr("checked",true);
721 }
722 if ( value.indexOf("_ipk") > 0 ) {
723 $("#package_class_2_input").attr("checked",true);
724 }
711 } 725 }
712 }); 726 });
713 727