// *************************************************************** // Plush main code as follows, by pairofdimes (see LICENSE-CC.txt) jQuery(function($){ $.plush = { // *************************************************************** // Plush defaults refreshRate: $.cookie('plushRefreshRate') ? $.cookie('plushRefreshRate') : 4, // refresh rate in seconds containerWidth: $.cookie('plushContainerWidth') ? $.cookie('plushContainerWidth') : '100%', // width of all elements on page queuePerPage: $.cookie('plushQueuePerPage') ? $.cookie('plushQueuePerPage') : 5, // pagination - nzbs per page histPerPage: $.cookie('plushHistPerPage') ? $.cookie('plushHistPerPage') : 5, // pagination - nzbs per page confirmDeleteQueue: $.cookie('plushConfirmDeleteQueue') == 0 ? false : true, // confirm queue nzb removal confirmDeleteHistory: $.cookie('plushConfirmDeleteHistory') == 0 ? false : true, // confirm history nzb removal blockRefresh: $.cookie('plushBlockRefresh') == 0 ? false : true, // prevent refreshing when hovering queue failedOnly: $.cookie('plushFailedOnly') == 1 ? 1 : 0, // prevent refreshing when hovering queue multiOps: $.cookie('plushMultiOps') == 0 ? false : true, // is multi-operations menu visible in queue noTopMenu: $.cookie('plushNoTopMenu') == 1 ? false : true, // is top menu visible multiOpsChecks: null, // *************************************************************** // $.plush.Init() -- initialize all the UI events Init : function() { $.plush.InitAddNZB(); $.plush.InitMainMenu(); $.plush.InitQueue(); $.plush.InitHistory(); $.plush.InitTooltips(); }, // end $.plush.Init() // *************************************************************** // $.plush.InitAddNZB() -- "Add NZB" Methods InitAddNZB : function() { // Fetch NZB by URL/Newzbin Report ID $('#addID').click(function(){ // also works when hitting enter because of