// *************************************************************** // Plush main code as follows, by pairofdimes (see LICENSE-CC.txt) jQuery(function($){ $.plush = { // *************************************************************** // Plush defaults refreshRate: $.cookie('refreshRate') ? $.cookie('refreshRate') : 30, // refresh rate in seconds containerWidth: $.cookie('containerWidth') ? $.cookie('containerWidth') : '90%', // width of all elements on page queuePerPage: $.cookie('queuePerPage') ? $.cookie('queuePerPage') : 5, // pagination - nzbs per page histPerPage: $.cookie('histPerPage') ? $.cookie('histPerPage') : 5, // pagination - nzbs per page confirmDeleteQueue: $.cookie('confirmDeleteQueue') == 0 ? false : true, // confirm queue nzb removal confirmDeleteHistory: $.cookie('confirmDeleteHistory') == 0 ? false : true, // confirm history nzb removal blockRefresh: $.cookie('blockRefresh') == 0 ? false : true, // prevent refreshing when hovering queue failedOnly: $.cookie('failedOnly') == 1 ? 1 : 0, // prevent refreshing when hovering queue multiOps: $.cookie('multiOps') == 1 ? true : false, // is multi-operations menu visible in queue 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