mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 05:34:04 +00:00
Every campaign has an end.
Drop ahoy, because it's more trouble than it's worth. This means dropping visits, campaigns, targets. Campaigns are better run to analytics, such as: * https://matomo.org/docs/tracking-campaigns/ * https://matomo.org/docs/tracking-goals-web-analytics/ * https://support.google.com/analytics/answer/1012040?hl=en
This commit is contained in:
parent
62056fc044
commit
b11001cdba
47 changed files with 19 additions and 1420 deletions
|
|
@ -22,7 +22,6 @@
|
|||
//= require bootstrap
|
||||
//= require osem
|
||||
//= require osem-dashboard
|
||||
//= require ahoy
|
||||
//= require jquery-smooth-scroll
|
||||
//= require trianglify
|
||||
//= require tinycolor
|
||||
|
|
|
|||
|
|
@ -112,19 +112,4 @@ $(function () {
|
|||
$("#registration-period-end-datepicker").on("dp.change",function (e) {
|
||||
$('#registration-period-start-datepicker').data("DateTimePicker").setMaxDate(e.date);
|
||||
});
|
||||
|
||||
$(".target-due-date-datepicker").datetimepicker({
|
||||
pickTime: false,
|
||||
format: "YYYY-MM-DD"
|
||||
});
|
||||
/* Appends the datetimepicker to new injected nested target fields. */
|
||||
$('a:contains("Add target")').click(function () {
|
||||
setTimeout(function () {
|
||||
$('.target-due-date-datepicker').not('.hasDatepicker').datetimepicker({
|
||||
pickTime: false,
|
||||
format: "YYYY-MM-DD"
|
||||
});
|
||||
},
|
||||
5)
|
||||
});
|
||||
} );
|
||||
|
|
|
|||
|
|
@ -89,31 +89,6 @@ $(function () {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Opens a prompt with the URL to copy to clipboard.
|
||||
* Used in the campaign index view.
|
||||
*/
|
||||
$('.copyLink').on('click', function(){
|
||||
var url = $(this).data('url');
|
||||
copyToClipboard(url);
|
||||
})
|
||||
function copyToClipboard(text) {
|
||||
window.prompt("Copy to clipboard: Ctrl+C, Enter", text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggles the targets on the conference site with a more / less link.
|
||||
*/
|
||||
$('.show_targets').click(function () {
|
||||
if($(this).text().trim() == 'more'){
|
||||
$(this).text("less");
|
||||
}else{
|
||||
$(this).text("more");
|
||||
}
|
||||
$('#' + $(this).data('name')).toggle();
|
||||
});
|
||||
|
||||
$(".comment-reply-link").click(function(){
|
||||
$(".comment-reply", $(this).parent()).toggle();
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue