Added newsletter custom stylesheets and js alert

This commit is contained in:
María Checa
2018-02-09 17:55:00 +01:00
parent f1fbe7ff29
commit d786284ce9
3 changed files with 28 additions and 0 deletions

View File

@@ -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(){

View File

@@ -0,0 +1,4 @@
App.SendNewsletterAlert =
initialize: ->
$('#js-send-newsletter-alert').on 'click', ->
confirm(this.dataset.alert);

View File

@@ -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;
}
}
}