\
-
? \
-
\
-'+tr("These options are stored in your OpenNebula user template.")+'\
-
\
-
\
-'+tr("WSS connection requires additional configuration of Sunstone Server and that the SSL certificate is considered valid by your browser.")+'\
-
\
+'
\
+
\
+
\
+
\
+
\
+
\
+ ' + tr("Language") + ': \
+
\
+
\
+ \
+ '+tr("Catalan")+' \
+ '+tr("Chinese (TW)")+' \
+ '+tr("Czech (CZ)")+' \
+ '+tr("English (US)")+' \
+ '+tr("French (FR)")+' \
+ '+tr("German")+' \
+ '+tr("Greek (GR)")+' \
+ '+tr("Italian (IT)")+' \
+ '+tr("Persian (IR)")+' \
+ '+tr("Portuguese (BR)")+' \
+ '+tr("Portuguese (PT)")+' \
+ '+tr("Russian (RU)")+' \
+ '+tr("Slovak (SK)")+' \
+ '+tr("Spanish (SP)")+' \
+ \
+
\
+
\
+
\
+
\
+ ' + tr("Secure websockets connection") + ': \
+
\
+
\
+ \
+
\
+
\
+
\
+
';
var config_actions = {
"Config.list" : {
@@ -95,7 +94,7 @@ function updateConfig(request,response){
//Set wss checkbox to correct value
if (config_response['user_config']["wss"] == "yes"){
- $('table#config_table input#wss_checkbox').attr('checked','checked');
+ $('input#wss_checkbox').attr('checked','checked');
};
};
@@ -115,7 +114,7 @@ function updateWss(){
var template = user_json.USER.TEMPLATE;
var template_str="";
template['VNC_WSS']=
- $('#config_table #wss_checkbox').is(':checked') ? "yes" : "no";
+ $('#input#wss_checkbox').is(':checked') ? "yes" : "no";
//convert json to ONE template format - simple conversion
$.each(template,function(key,value){
template_str += (key + '=' + '"' + value + '"\n');
@@ -132,7 +131,7 @@ function updateWss(){
}
};
OpenNebula.User.show(user_info_req);
- $.post('config',JSON.stringify({wss : ($('#config_table #wss_checkbox').is(':checked') ? "yes" : "no")}));
+ $.post('config',JSON.stringify({wss : ($('input#wss_checkbox').is(':checked') ? "yes" : "no")}));
};
$(document).ready(function(){
@@ -140,13 +139,13 @@ $(document).ready(function(){
//Set the language select to correct value
if (lang)
- $('table#config_table #lang_sel option[value="'+lang+'"]').attr('selected','selected');
+ $('#lang_sel option[value="'+lang+'"]').attr('selected','selected');
//Listener to change language. setLang in locale.js
- $('table#config_table #lang_sel').change(function(){
+ $('#lang_sel').change(function(){
setLang($(this).val());
});
//Listener to wss change
- $('table#config_table #wss_checkbox').change(updateWss);
+ $('#wss_checkbox').change(updateWss);
});
\ No newline at end of file