From 1f006e53d3dfbf3aeeff43b14f38648408578700 Mon Sep 17 00:00:00 2001 From: Darko Date: Fri, 24 Jul 2015 13:59:19 +0200 Subject: [PATCH] Add buttons for functions in posterwall. --- www/templates/charisma/scripts/utils.js | 14 +++++++------- .../charisma/views/frontend/newposterwall.tpl | 10 +++++----- www/templates/omicron/scripts/utils.js | 14 +++++++------- .../omicron/views/frontend/newposterwall.tpl | 8 ++++---- www/templates_shared/styles/posterwall.css | 7 +++++-- 5 files changed, 28 insertions(+), 25 deletions(-) diff --git a/www/templates/charisma/scripts/utils.js b/www/templates/charisma/scripts/utils.js index 3686087df..5a80e313b 100644 --- a/www/templates/charisma/scripts/utils.js +++ b/www/templates/charisma/scripts/utils.js @@ -68,7 +68,7 @@ jQuery(function($){ if ($(this).hasClass('icon_cart_clicked')) return false; var guid = $(this).parent().parent().attr('id').substring(4); $.post( SERVERROOT + "cart?add=" + guid, function(resp){ - $(e.target).addClass('icon_cart_clicked').attr('title','Added to Cart'); + $(e.target).addClass('icon_cart_clicked').attr('title',' Release added to Cart'); cart_notify(); }); return false; @@ -201,8 +201,8 @@ jQuery(function($){ var nzburl = SERVERROOT + "sendtoqueue/" + guid; $.post(nzburl, function(resp){ - $(e.target).addClass('icon_sab_clicked').attr('title','Added to Queue'); - notify('NZB added to queue', 'top'); + $(e.target).addClass('icon_sab_clicked').attr('title','Release added to Queue'); + notify('Release added to queue', 'topCenter'); }); return false; }); @@ -215,7 +215,7 @@ jQuery(function($){ $.post(nzburl, function(resp){ $(e.target).addClass('icon_nzbget_clicked').attr('title','Added to Queue'); - notify('NZB added to queue', 'top'); + notify('Release added to queue', 'topCenter'); }); return false; }); @@ -311,7 +311,7 @@ jQuery(function($){ // alert(nzburl); $.post( nzburl, function(resp){ $sabIcon.addClass('icon_sab_clicked').attr('title','Added to Queue'); - notify('NZB added to queue', 'top'); + notify('Release added to queue', 'topCenter'); }); } $(this).attr('checked', false); @@ -325,7 +325,7 @@ jQuery(function($){ var nzburl = SERVERROOT + "sendtoqueue/" + guid; $.post( nzburl, function(resp){ $nzbgetIcon.addClass('icon_nzbget_clicked').attr('title','Added to Queue'); - notify('NZB added to queue', 'top'); + notify('Release added to queue', 'topCenter'); }); } $(this).attr('checked', false); @@ -394,7 +394,7 @@ jQuery(function($){ var guid = $(row).val(); var nzburl = SERVERROOT + "sendtoqueue/" + guid; $.post( nzburl, function(resp){ - notify('NZB added to queue', 'top'); + notify('Release added to queue', 'topCenter'); }); }); }); diff --git a/www/templates/charisma/views/frontend/newposterwall.tpl b/www/templates/charisma/views/frontend/newposterwall.tpl index 84ae4d4b8..45a1f4499 100644 --- a/www/templates/charisma/views/frontend/newposterwall.tpl +++ b/www/templates/charisma/views/frontend/newposterwall.tpl @@ -66,14 +66,14 @@
- diff --git a/www/templates/omicron/scripts/utils.js b/www/templates/omicron/scripts/utils.js index 3686087df..5a80e313b 100644 --- a/www/templates/omicron/scripts/utils.js +++ b/www/templates/omicron/scripts/utils.js @@ -68,7 +68,7 @@ jQuery(function($){ if ($(this).hasClass('icon_cart_clicked')) return false; var guid = $(this).parent().parent().attr('id').substring(4); $.post( SERVERROOT + "cart?add=" + guid, function(resp){ - $(e.target).addClass('icon_cart_clicked').attr('title','Added to Cart'); + $(e.target).addClass('icon_cart_clicked').attr('title',' Release added to Cart'); cart_notify(); }); return false; @@ -201,8 +201,8 @@ jQuery(function($){ var nzburl = SERVERROOT + "sendtoqueue/" + guid; $.post(nzburl, function(resp){ - $(e.target).addClass('icon_sab_clicked').attr('title','Added to Queue'); - notify('NZB added to queue', 'top'); + $(e.target).addClass('icon_sab_clicked').attr('title','Release added to Queue'); + notify('Release added to queue', 'topCenter'); }); return false; }); @@ -215,7 +215,7 @@ jQuery(function($){ $.post(nzburl, function(resp){ $(e.target).addClass('icon_nzbget_clicked').attr('title','Added to Queue'); - notify('NZB added to queue', 'top'); + notify('Release added to queue', 'topCenter'); }); return false; }); @@ -311,7 +311,7 @@ jQuery(function($){ // alert(nzburl); $.post( nzburl, function(resp){ $sabIcon.addClass('icon_sab_clicked').attr('title','Added to Queue'); - notify('NZB added to queue', 'top'); + notify('Release added to queue', 'topCenter'); }); } $(this).attr('checked', false); @@ -325,7 +325,7 @@ jQuery(function($){ var nzburl = SERVERROOT + "sendtoqueue/" + guid; $.post( nzburl, function(resp){ $nzbgetIcon.addClass('icon_nzbget_clicked').attr('title','Added to Queue'); - notify('NZB added to queue', 'top'); + notify('Release added to queue', 'topCenter'); }); } $(this).attr('checked', false); @@ -394,7 +394,7 @@ jQuery(function($){ var guid = $(row).val(); var nzburl = SERVERROOT + "sendtoqueue/" + guid; $.post( nzburl, function(resp){ - notify('NZB added to queue', 'top'); + notify('Release added to queue', 'topCenter'); }); }); }); diff --git a/www/templates/omicron/views/frontend/newposterwall.tpl b/www/templates/omicron/views/frontend/newposterwall.tpl index 229564148..bf4177556 100644 --- a/www/templates/omicron/views/frontend/newposterwall.tpl +++ b/www/templates/omicron/views/frontend/newposterwall.tpl @@ -66,14 +66,14 @@
-
diff --git a/www/templates_shared/styles/posterwall.css b/www/templates_shared/styles/posterwall.css index 2b7b46db1..feb7d95a2 100644 --- a/www/templates_shared/styles/posterwall.css +++ b/www/templates_shared/styles/posterwall.css @@ -36,8 +36,11 @@ div.icons { white-space:nowrap; padding-left:0; padding-right:0; - width:65px; - margin: 0 auto; + width:100%; + margin: auto; + display:inline-block; + vertical-align: middle; + align-items: center; } a.divlink {