diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 561825ccc..b29eeecb0 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -75,6 +75,7 @@ //= require sortable //= require table_sortable //= require investment_report_alert +//= require send_newsletter_alert var initialize_modules = function() { App.Comments.initialize(); @@ -117,6 +118,7 @@ var initialize_modules = function() { App.Sortable.initialize(); App.TableSortable.initialize(); App.InvestmentReportAlert.initialize(); + App.SendNewsletterAlert.initialize(); }; $(function(){ diff --git a/app/assets/javascripts/send_newsletter_alert.js.coffee b/app/assets/javascripts/send_newsletter_alert.js.coffee new file mode 100644 index 000000000..3b06a30ff --- /dev/null +++ b/app/assets/javascripts/send_newsletter_alert.js.coffee @@ -0,0 +1,4 @@ +App.SendNewsletterAlert = + initialize: -> + $('#js-send-newsletter-alert').on 'click', -> + confirm(this.dataset.alert); diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 8e43f8903..45390aca4 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -10,6 +10,7 @@ // 08. CMS // 09. Map // 10. Budgets +// 11. Newsletters // // 01. Global styles @@ -1092,3 +1093,24 @@ table { } } } + +// 11. Newsletters +// ----------------- + +.newsletter-body-content { + + table, + tbody, + tr, + th, + td { + border: 0; + + &:nth-child(even), + &:nth-child(even) td:last-child, + &:nth-child(odd) td:last-child, + &:hover { + background: none; + } + } +}