dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11049
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3081: js cleanup in module dhis-web-maintenance-settings
------------------------------------------------------------
revno: 3081
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-03-18 15:28:38 +0100
message:
js cleanup in module dhis-web-maintenance-settings
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/webapp/dhis-web-maintenance-settings/userSettings.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/webapp/dhis-web-maintenance-settings/userSettings.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/webapp/dhis-web-maintenance-settings/userSettings.vm 2011-01-17 17:03:05 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/webapp/dhis-web-maintenance-settings/userSettings.vm 2011-03-18 14:28:38 +0000
@@ -1,49 +1,41 @@
-
#if( $availableLocales )
-
<script type="text/javascript">
-
-function languageChanged( list )
-{
- var locale = list.options[list.selectedIndex].value;
-
- window.location.href = "setCurrentLocale.action?currentLocale=" + locale;
-}
-
-function languageChangedDb( list )
-{
- var locale = list.options[list.selectedIndex].value;
-
- window.location.href = "setCurrentLocaleDb.action?currentLocaleDb=" + locale;
-}
-
-function sortOrderChanged( list )
-{
- var sortOrder = list.options[list.selectedIndex].value;
-
- window.location.href = "setCurrentSortOrder.action?currentSortOrder=" + sortOrder;
-}
-
-function displayPropertyChanged( list )
-{
- var property = list.options[list.selectedIndex].value;
-
- window.location.href = "setCurrentDisplayProperty.action?currentDisplayProperty=" + property;
-}
-
-function autoSaveDataEntryForm( value )
-{
- window.location.href = "setAutoSaveDataEntryForm.action?autoSave=" + value;
-}
-
-function styleChanged( list )
-{
- var style = list.options[list.selectedIndex].value;
-
- window.location.href = "setCurrentStyle.action?currentStyle=" + style;
-}
-
+ function languageChanged( list )
+ {
+ var locale = list.options[list.selectedIndex].value;
+ window.location.href = "setCurrentLocale.action?currentLocale=" + locale;
+ }
+
+ function languageChangedDb( list )
+ {
+ var locale = list.options[list.selectedIndex].value;
+ window.location.href = "setCurrentLocaleDb.action?currentLocaleDb=" + locale;
+ }
+
+ function sortOrderChanged( list )
+ {
+ var sortOrder = list.options[list.selectedIndex].value;
+ window.location.href = "setCurrentSortOrder.action?currentSortOrder=" + sortOrder;
+ }
+
+ function displayPropertyChanged( list )
+ {
+ var property = list.options[list.selectedIndex].value;
+ window.location.href = "setCurrentDisplayProperty.action?currentDisplayProperty=" + property;
+ }
+
+ function autoSaveDataEntryForm( value )
+ {
+ window.location.href = "setAutoSaveDataEntryForm.action?autoSave=" + value;
+ }
+
+ function styleChanged( list )
+ {
+ var style = list.options[list.selectedIndex].value;
+ window.location.href = "setCurrentStyle.action?currentStyle=" + style;
+ }
</script>
+
<form>
<h3>$i18n.getString("user_settings")</h3>
@@ -91,4 +83,4 @@
<input type="checkbox" #if($autoSave == 'true') checked #end onchange="autoSaveDataEntryForm(this.checked);"/>
</form>
-#end
\ No newline at end of file
+#end