Added newsletter custom stylesheets and js alert
This commit is contained in:
@@ -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(){
|
||||
|
||||
4
app/assets/javascripts/send_newsletter_alert.js.coffee
Normal file
4
app/assets/javascripts/send_newsletter_alert.js.coffee
Normal file
@@ -0,0 +1,4 @@
|
||||
App.SendNewsletterAlert =
|
||||
initialize: ->
|
||||
$('#js-send-newsletter-alert').on 'click', ->
|
||||
confirm(this.dataset.alert);
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user