Subversion Repositories SmartDukaan

Rev

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

Rev 37498 Rev 37559
Line 119... Line 119...
119
    function clearQuickFilter() {
119
    function clearQuickFilter() {
120
        jQuery('#table-quick-filter').val('');
120
        jQuery('#table-quick-filter').val('');
121
        jQuery('#clear-quick-filter').hide();
121
        jQuery('#clear-quick-filter').hide();
122
        jQuery('#filter-result-count').text('');
122
        jQuery('#filter-result-count').text('');
123
    }
123
    }
-
 
124
 
-
 
125
    // Download all tickets for the currently-selected status/order (ignores pagination)
-
 
126
    jQuery(document).off('click.ticketDownload').on('click.ticketDownload', '#downloadTicketsBtn', function () {
-
 
127
        var ticketStatus = jQuery('#ticketStatus').val() || 'OPENED';
-
 
128
        var orderBy = jQuery('#orderBy').val() || 'DESCENDING';
-
 
129
        var url = context + '/cs/downloadMyTickets?ticketStatus=' + encodeURIComponent(ticketStatus)
-
 
130
                + '&orderby=' + encodeURIComponent(orderBy);
-
 
131
        window.location.href = url;
-
 
132
    });
124
</script>
133
</script>
125
<style>
134
<style>
126
    .pagination-wrapper {
135
    .pagination-wrapper {
127
        display: flex;
136
        display: flex;
128
        align-items: center;
137
        align-items: center;
Line 287... Line 296...
287
                        #end
296
                        #end
288
                    #end
297
                    #end
289
                #end
298
                #end
290
            </select>
299
            </select>
291
        </div>
300
        </div>
-
 
301
        <div class="col-lg-2 form-group">
-
 
302
            <button type="button" id="downloadTicketsBtn" class="btn btn-success btn-sm">
-
 
303
                <i class="fa fa-download"></i> Download
-
 
304
            </button>
-
 
305
        </div>
292
        #if($roleType)
306
        #if($roleType)
293
        <div class="col-lg-6 form-group pull-right">
307
        <div class="col-lg-6 form-group pull-right">
294
            ## Quick Filter for Table
308
            ## Quick Filter for Table
295
 
309
 
296
            #*<div class="col-lg-6">
310
            #*<div class="col-lg-6">