~robbyoconnor/sahana-eden/surveytool

« back to all changes in this revision

Viewing changes to views/sahana_scripts_min.html

  • Committer: Robert O'Connor
  • Date: 2010-09-15 14:29:32 UTC
  • mfrom: (840.1.415 eden)
  • Revision ID: robby.oconnor@gmail.com-20100915142932-7uw2dm1yqdq09thb
merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
<script src="/{{=request.application}}/static/scripts/S3/S3.min.js" type="text/javascript"></script>
26
26
 
27
27
<!--Scripts which need pre-processing by server must be called in-line-->
28
 
  
 
28
 
29
29
<!--Web2Py Layer-->
30
30
<script type="text/javascript">//<![CDATA[
31
31
jQuery(document).ready(function() {
32
 
    jQuery("input[type='checkbox'].delete").click(function() { if(this.checked) if(!confirm("{{=T('Sure you want to delete this object?')}}")) this.checked=false; }); 
 
32
    jQuery("input[type='checkbox'].delete").click(function() { if(this.checked) if(!confirm("{{=T('Sure you want to delete this object?')}}")) this.checked=false; });
33
33
    try { jQuery("input.datetime").focus( function() {Calendar.setup({
34
34
         inputField:this.id, ifFormat:"{{=T('%Y-%m-%d %H:%M:%S')}}", showsTime: true,timeFormat: "24"
35
35
    }); }); } catch(e) {};
70
70
    jQuery('.tooltip').cluetip({activation: 'hover', sticky: false, splitTitle: '|'});
71
71
    jQuery('.stickytip').cluetip({activation: 'hover', sticky: true, closePosition: 'title', closeText: '<img src="/{{=request.application}}/static/img/cross2.png" alt="close" />', splitTitle: '|'});
72
72
    jQuery('.ajaxtip').cluetip({activation: 'click', sticky: true, closePosition: 'title', closeText: '<img src="/{{=request.application}}/static/img/cross2.png" alt="close" />', width: 380});
 
73
    now = new Date();
 
74
    jQuery('form').append("<input type='hidden' value=" + now.getTimezoneOffset() + " name='_utc_offset'/>");
73
75
});
74
76
//]]></script>
75
77