SAAS-945: Language + Timezone Setup Popup

This commit is contained in:
drigato 2015-07-27 07:06:22 -04:00
parent ce7765a8cb
commit ee2bfe7664
8 changed files with 164 additions and 3 deletions

View file

@ -0,0 +1,40 @@
$(document).ready(function() {
var dialog = $("#lang-timezone-popup");
dialog.dialog({
autoOpen: false,
width: 500,
resizable: false,
modal: true,
position:['center',50],
buttons: [
{
id: "setup-later",
text: $.i18n._("Set Later"),
"class": "btn",
click: function() {
$(this).dialog("close");
}
},
{
id: "help_airtime",
text: $.i18n._("OK"),
"class": "btn",
click: function() {
var formValues = $("#lang-timezone-form").serializeArray();
$.post(baseUrl+"setup/setup-language-timezone",
{
format: "json",
data: formValues
}, function(json) {
console.log(json);
$("#lang-timezone-popup").dialog("close");
});
}
}
]
});
dialog.dialog('open');
});