Subversion Repositories SmartDukaan

Rev

Rev 37171 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37171 Rev 37498
Line 209... Line 209...
209
            </div>
209
            </div>
210
        </div>
210
        </div>
211
    </div>
211
    </div>
212
</section>
212
</section>
213
<script type="text/javascript">
213
<script type="text/javascript">
-
 
214
    // Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
215
    // namespace first so handlers replace rather than stack.
-
 
216
    $(document).off('.walletdetails');
214
    $(document).on('click', '.wallet-doc-view-btn', function () {
217
    $(document).on('click.walletdetails', '.wallet-doc-view-btn', function () {
215
        var docUrl = $(this).data('doc-url');
218
        var docUrl = $(this).data('doc-url');
216
        $('#wallet-doc-preview').attr('src', docUrl);
219
        $('#wallet-doc-preview').attr('src', docUrl);
217
        $('#walletDocViewModal').modal('show');
220
        $('#walletDocViewModal').modal('show');
218
    });
221
    });
219
	$(function () {
222
	$(function () {