issue #0001709: test environment

This commit is contained in:
Arman KYOKCHAN 2013-10-09 10:50:57 +00:00
parent 7fcc7cb7ae
commit 091f89dc43
4 changed files with 9 additions and 7 deletions

View File

@ -431,7 +431,7 @@ class GiantController extends Zend_Controller_Action
print_r(array('no'));
}
else {
print_r($value->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode);
print_r(json_encode($value->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode));
}
}
public function reteventsAction()

View File

@ -17,8 +17,6 @@
<?php endforeach;?>
</select>
</form>
<table id="giant_synthese">
<thead>
<tr>

View File

@ -33,4 +33,4 @@ lifetime = "86403"
[test]
;1 = test mode
;0 = production
TestIndication = '1'
TestIndication = '0'

View File

@ -23,10 +23,14 @@ $(document).ready( function()
$('select[name=LanguageCode]').fadeOut();
$("select[name=Pays] option:selected").each(function () {
var values = $(this).attr('value');
//alert(values);
$.post('/giant/getpays',{Pays: values}, function(data) {
alert(data);
//alert($('select[name=LanguageCode]').html());
data = (jQuery.parseJSON(data));
$('select[name=LanguageCode]').find('option').remove();
$.each(data, function(key, value) {
$('select[name=LanguageCode]')
.append($('<option>', { value : value })
.text(value));
});
});
});
$('select[name=LanguageCode]').fadeIn(500);