Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var loadInbox = function (el, name) {
- var url = '<?php echo base_url(); ?>member/ticket_view.php';
- var title = $('.inbox-nav > li.' + name + ' a').attr('data-title');
- listListing = name;
- loading.show();
- content.html('');
- toggleButton(el);
- $.ajax({
- type: "GET",
- cache: false,
- url: url,
- dataType: "html",
- success: function(res)
- {
- toggleButton(el);
- $('.inbox-nav > li.active').removeClass('active');
- $('.inbox-nav > li.' + name).addClass('active');
- $('.inbox-header > h1').text(title);
- loading.hide();
- content.html(res);
- if (Layout.fixContentHeight) {
- Layout.fixContentHeight();
- }
- Metronic.initUniform();
- },
- error: function(xhr, ajaxOptions, thrownError)
- {
- toggleButton(el);
- },
- async: false
- });
- // handle group checkbox:
- jQuery('body').on('change', '.mail-group-checkbox', function () {
- var set = jQuery('.mail-checkbox');
- var checked = jQuery(this).is(":checked");
- jQuery(set).each(function () {
- $(this).attr("checked", checked);
- });
- jQuery.uniform.update(set);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement