Subversion Repositories SmartDukaan

Rev

Rev 17573 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17573 Rev 18237
Line 34... Line 34...
34
	    		var data = JSON.parse(res);
34
	    		var data = JSON.parse(res);
35
	    		var planId;
35
	    		var planId;
36
	    		operatorId = data.operatorId;
36
	    		operatorId = data.operatorId;
37
	    		circleCode = data.circleCode;
37
	    		circleCode = data.circleCode;
38
	    		var dropdownlistbox = document.getElementById("mobile-operator");
38
	    		var dropdownlistbox = document.getElementById("mobile-operator");
-
 
39
	    		document.getElementById("mobile-operator").disabled = false;
39
				for(var x=0;x < dropdownlistbox.length -1 ; x++)
40
				for(var x=0;x < dropdownlistbox.length -1 ; x++)
40
				{
41
				{
41
				   if(data.operatorName == dropdownlistbox.options[x].text)
42
				   if(data.operatorName == dropdownlistbox.options[x].text)
42
				   {
43
				   {
43
				       dropdownlistbox.selectedIndex = x;
44
				       dropdownlistbox.selectedIndex = x;
44
				       document.getElementById("mobile-operator").disabled = false;
-
 
45
				       var opids ='';
45
				       var opids ='';
46
				        for(var i=0;i<plan.length;i++){
46
				        for(var i=0;i<plan.length;i++){
47
							if(plan[i].operatorId == operatorId){
47
							if(plan[i].operatorId == operatorId){
48
								var planId = plan[i].operatorId;
48
								var planId = plan[i].operatorId;
49
								opids += '<option value='+plan[i].Name+'>'+plan[i].displayName+'</option>';
49
								opids += '<option value='+plan[i].Name+'>'+plan[i].displayName+'</option>';