dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #08563
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2077: Removed unused javascript function
------------------------------------------------------------
revno: 2077
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2010-11-16 17:07:55 +0100
message:
Removed unused javascript function
modified:
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/completeRegistration.vm
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js
--
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-dataentry/src/main/webapp/dhis-web-dataentry/completeRegistration.vm'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/completeRegistration.vm 2010-05-18 06:05:52 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/completeRegistration.vm 2010-11-16 16:07:55 +0000
@@ -1,18 +1,4 @@
-<script>
- /*
- jQuery(document).ready(function(){
- jQuery("#completeForm").validate({
- meta:"validate"
- ,errorElement:"td"
- ,submitHandler: function(form)
- {
- //validateCompleteDataSet();
- }
- });
- jQuery.validator.loadLocaled( jQuery("#curLocaleCode").val() );
- });
- */
-</script>
+
<input type="hidden" id="curLocaleCode" value="$locale.getLanguage()_$locale.getCountry()"/>
<form id="completeForm">
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2010-11-15 19:13:42 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2010-11-16 16:07:55 +0000
@@ -289,7 +289,6 @@
}
else
{
- setMessage(i18n_register_complete_dataset_failed);
window.open( 'validate.action', '_blank', 'width=800, height=400, scrollbars=yes, resizable=yes' );
}
}
@@ -301,7 +300,6 @@
if ( type=='input' )
{
setHeaderDelayMessage( messageElement.firstChild.nodeValue );
- setMessage(i18n_register_complete_dataset_failed);
return;
}
@@ -309,9 +307,6 @@
document.getElementById( "undoButton" ).disabled = false;
document.getElementById( "dateField" ).disabled = true;
document.getElementById( "dateDiv" ).style.display = "none";
-
- setMessage(i18n_register_complete_dataset_success);
- changeInputTextStatus( true );
}
function undoCompleteDataSet()
@@ -334,8 +329,6 @@
document.getElementById( "undoButton" ).disabled = true;
document.getElementById( "dateField" ).disabled = false;
document.getElementById( "dateDiv" ).style.display = "inline";
- setMessage( i18n_undo_register_complete_dataset_success );
- changeInputTextStatus( false );
}
// -----------------------------------------------------------------------------