Subversion Repositories SmartDukaan

Rev

Rev 36709 | Rev 36717 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36709 Rev 36710
Line 794... Line 794...
794
        var attachment = $(this).data('attachment');
794
        var attachment = $(this).data('attachment');
795
        var checkinLatLng = $(this).data('checkin-latlng') || '';
795
        var checkinLatLng = $(this).data('checkin-latlng') || '';
796
        var visitLocation = $(this).data('visit-location') || '';
796
        var visitLocation = $(this).data('visit-location') || '';
797
        var trackingId = $(this).data('tracking-id');
797
        var trackingId = $(this).data('tracking-id');
798
 
798
 
799
        var imgUrl = context + '/document/' + attachment;
799
        var imgUrl = context + '/download-attachment?documentId=' + attachment;
800
        $('#attachmentImage').attr('src', imgUrl);
800
        $('#attachmentImage').attr('src', imgUrl);
801
        $('#approveCheckinBtn').hide().removeData('tracking-id');
801
        $('#approveCheckinBtn').hide().removeData('tracking-id');
802
        $('#attachmentDistanceInfo').html('');
802
        $('#attachmentDistanceInfo').html('');
803
 
803
 
804
        var distanceM = -1;
804
        var distanceM = -1;