Subversion Repositories munaweb

Rev

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

Rev 6 Rev 7
Line 17... Line 17...
17
var configListingUrl = 'https://ujsoftware.linkpc.net/ebay/listings/';
17
var configListingUrl = 'https://ujsoftware.linkpc.net/ebay/listings/';
18
var configDiscogsBaseUrl = 'https://www.discogs.com';
18
var configDiscogsBaseUrl = 'https://www.discogs.com';
19
var configDiscogsApiUrl = 'https://api.discogs.com/database/search';
19
var configDiscogsApiUrl = 'https://api.discogs.com/database/search';
20
var configDiscogsUserAgent = 'MUNA_Trading/1.0 +http://www.munatrading.com';
20
var configDiscogsUserAgent = 'MUNA_Trading/1.0 +http://www.munatrading.com';
21
var configProxyUrl = 'https://ujsoftware.linkpc.net/proxy.php';
21
var configProxyUrl = 'https://ujsoftware.linkpc.net/proxy.php';
-
 
22
var configShopifyApiKey = '41f0d3bf0e8e114496b198938996d9d8';
-
 
23
var configShopifyPassword = 'f169694c488f45ccf187c92676765889';
22
var configShopifyUrl = 'https://41f0d3bf0e8e114496b198938996d9d8:f169694c488f45ccf187c92676765889@muna-trading.myshopify.com/admin/';
24
var configShopifyUrl = 'https://' + configShopifyApiKey + ':' + configShopifyPassword + '@muna-trading.myshopify.com/admin/';
23
var configShopifyProductsUrl = 'products.json';
25
var configShopifyProductsUrl = 'products.json';
24
var configShopifyOrdersUrl = 'orders.json';
26
var configShopifyOrdersUrl = 'orders.json';
25
var configShopifyTransactionsUrl1 = 'orders/';
27
var configShopifyTransactionsUrl1 = 'orders/';
26
var configShopifyTransactionsUrl2 = '/transactions.json';
28
var configShopifyTransactionsUrl2 = '/transactions.json';
27
var configShopifyOrderLimit = 250;
29
var configShopifyOrderLimit = 250;
Line 674... Line 676...
674
      and mark that a switch has been done: */
676
      and mark that a switch has been done: */
675
      rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
677
      rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
676
      switching = true;
678
      switching = true;
677
    }
679
    }
678
  }
680
  }
-
 
681
}
-
 
682
 
-
 
683
// Update table sorter counters after processed deleting rows
-
 
684
// <p>Showing <span id="filtered-rows">0</span> of <span id="total-rows">0</span> / <span id="selected-rows">0</span> selected.</p>
-
 
685
function tableSorterUpdateCounters(tableName) {
-
 
686
    $("#" + tableName).trigger("update").trigger("appendCache").trigger("applyWidgets").trigger('search', false);
-
 
687
            
-
 
688
    var rowCount = $('#' + tableName + ' tbody tr').length;
-
 
689
    var filteredCount = rowCount - $('#' + tableName + ' tbody tr:hidden').length;
-
 
690
    var checkedCount = $('#' + tableName + ' tbody .checked').length;
-
 
691
            
-
 
692
    $('#total-rows').html(rowCount);
-
 
693
    $('#filtered-rows').html(filteredCount);
-
 
694
    $('#selected-rows').html(checkedCount);
-
 
695
    $("#" + tableName).find('thead input[type=checkbox]').prop('checked', false);
-
 
696
    $("#" + tableName).find('thead input[type=checkbox]').prop('indeterminate', false);
679
}
697
}