fixed the claims-returned count reset button
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Aug 2006 22:22:50 +0000 (22:22 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Aug 2006 22:22:50 +0000 (22:22 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5819 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/xul/staff_client/server/patron/ue.xhtml
Evergreen/xul/staff_client/server/patron/ue_config.js

index 086c2ac..d84b713 100644 (file)
                                                                                                        $('ue_claims_returned').value = 0;
                                                                                                        $('ue_claims_returned').disabled = true;
                                                                                                </script>
-                                                                                               <input class='pad' id='ue_claims_returned_reset' type='submit' value='Reset'/>
+                                                                                               <input class='pad' id='ue_claims_returned_reset' type='submit' value='Reset' 
+                                                                                                       onclick="
+                                                                                                               if( confirmId('ue_claims_return_confirm') ) {
+                                                                                                                       $('ue_claims_returned').value = 0;
+                                                                                                                       $('ue_claims_returned').onchange();
+                                                                                                               }
+                                                                                                       "/>
                                                                                        </div>
                                                                                </td>
                                                                        </tr>
                <span class='hide_me' id='ue_made_barred'>
                        Please add a note to the patron's alert message explaining why the patron is barred.
                </span>
+                
+               <span class='hide_me' id='ue_claims_return_confirm'>
+                       This will reset the claims returned count for this user.
+                       Are you sure you wish to perform this action?
+               </span>
 
        </div>
 
index 37eb11b..1dd2244 100644 (file)
@@ -428,6 +428,7 @@ function uEditDefineData(patron) {
                                id                      : 'ue_claims_returned',
                                type            : 'input',
                                regex           : numRegex,
+                               disabled : true
                        }
                },
                {