live saving on the metadata pages

This commit is contained in:
LukePulverenti
2013-03-11 10:54:08 -04:00
parent f010d032ed
commit 39020714f7
7 changed files with 108 additions and 98 deletions

View File

@@ -79,6 +79,12 @@
$('#selectLanguage', '#metadataConfigurationPage').html(html).selectmenu("refresh");
},
submit: function () {
$('.btnSubmit', $.mobile.activePage)[0].click();
},
onSubmit: function () {
Dashboard.showLoadingMsg();
@@ -92,7 +98,7 @@
config.PreferredMetadataLanguage = $('#selectLanguage', form).val();
config.MetadataCountryCode = $('#selectCountry', form).val();
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
ApiClient.updateServerConfiguration(config);
});
// Disable default form submission