dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #12842
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4024: Removed unnecessary js method
------------------------------------------------------------
revno: 4024
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2011-06-26 15:40:38 +0200
message:
Removed unnecessary js method
modified:
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/history.vm
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/history.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/history.vm'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/history.vm 2011-05-02 12:54:28 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/history.vm 2011-06-26 13:40:38 +0000
@@ -16,6 +16,13 @@
<h3>
$encoder.htmlEncode( $dataElementHistory.dataElement.name )
$encoder.htmlEncode( $dataElementHistory.optionCombo.name )
+ #if ( $dataValue && $dataValue.isFollowup() )
+ <img id="followup" src="../images/marked_large.png" alt="$i18n.getString( 'mark_value_for_followup' )" onclick="markValueForFollowup( '$dataValue.dataElement.id', '$dataValue.period.id', '$dataValue.source.id', '$dataValue.optionCombo.id' )" style="cursor:pointer"/>
+ #elseif ( $dataValue )
+ <img id="followup" src="../images/unmarked_large.png" alt="$i18n.getString( 'unmark_value_for_followup' )" onclick="markValueForFollowup( '$dataValue.dataElement.id', '$dataValue.period.id', '$dataValue.source.id', '$dataValue.optionCombo.id' )" style="cursor:pointer"/>
+ #else
+ <img id="followup" src="../images/unmarked_large.png"/>
+ #end
</h3>
<table>
@@ -34,17 +41,6 @@
</select>
<input id="value[$dataElementHistory.dataElement.id:$dataElementHistory.optionCombo.id].comment" type="text" value="$!encoder.htmlEncode( $dataValue.comment )" #if( $auth.hasAccess( "dhis-web-dataentry", "saveComment" ))
onblur="commentLeft()" #else disabled="disabled" #end style="width:100% #if( !$dataValue.comment || $standardComments.contains( $dataValue.comment )) ;display:none #end"/>
- #end
-
- <br/><br/>
- <h4>$i18n.getString( "followup" )</h4>
-
- #if ( $dataValue && $dataValue.isFollowup() )
- <img id="followup" src="../images/marked_large.png" alt="$i18n.getString( 'mark_value_for_followup' )" onclick="markValueForFollowup( '$dataValue.dataElement.id', '$dataValue.period.id', '$dataValue.source.id', '$dataValue.optionCombo.id' )" style="cursor:pointer"/>
- #elseif ( $dataValue )
- <img id="followup" src="../images/unmarked_large.png" alt="$i18n.getString( 'unmark_value_for_followup' )" onclick="markValueForFollowup( '$dataValue.dataElement.id', '$dataValue.period.id', '$dataValue.source.id', '$dataValue.optionCombo.id' )" style="cursor:pointer"/>
- #else
- <img id="followup" src="../images/unmarked_large.png"/>
#end
</td>
<!-- Column 2 - Min-max -->
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/history.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/history.js 2011-05-08 19:22:16 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/history.js 2011-06-26 13:40:38 +0000
@@ -105,15 +105,6 @@
}
}
-function isInt(value)
-{
- if( ((value) == parseInt(value)) && !isNaN(parseInt(value)) ) {
- return true;
- } else {
- return false;
- }
-}
-
function removeMinMaxLimit()
{
$( '#minLimit' ).val( '' );