revert
This commit is contained in:
parent
3f426a44dc
commit
7b9bb09263
1 changed files with 15 additions and 19 deletions
|
|
@ -259,13 +259,6 @@ SL.Calendar = (function() {
|
||||||
.attr('id', 'moment_'+j)
|
.attr('id', 'moment_'+j)
|
||||||
.attr('ts', m.ts)
|
.attr('ts', m.ts)
|
||||||
.appendTo('#grid');
|
.appendTo('#grid');
|
||||||
// show relevant tags and actions
|
|
||||||
// console.log(classes);
|
|
||||||
// classes.split(" ").forEach(function (item, index) {
|
|
||||||
// console.log(item);
|
|
||||||
// $('li.' + item).show();
|
|
||||||
// $('input#' + item).parent().shoe();
|
|
||||||
// });
|
|
||||||
if ( m.planetary.hour.no > 11 ) {
|
if ( m.planetary.hour.no > 11 ) {
|
||||||
$('#moment_'+j).addClass('night-hour');
|
$('#moment_'+j).addClass('night-hour');
|
||||||
}
|
}
|
||||||
|
|
@ -289,16 +282,19 @@ SL.Calendar = (function() {
|
||||||
SL.Calendar.download( $("#grid").html(), "grid.html", "skip", "html", "text/html; charset=utf-8");
|
SL.Calendar.download( $("#grid").html(), "grid.html", "skip", "html", "text/html; charset=utf-8");
|
||||||
SL.Calendar.download(Hours.moments, "ephemeris");
|
SL.Calendar.download(Hours.moments, "ephemeris");
|
||||||
}
|
}
|
||||||
var classes = Array();
|
// show relevant tags and actions
|
||||||
$(".planetaryhour").each(function(idx, el) {
|
|
||||||
classes = classes.concat(Array.from(el.classList));
|
// var classes = Array();
|
||||||
});
|
// $(".planetaryhour").each(function(idx, el) {
|
||||||
classes = Array.from(new Set(classes)).filter(x => !['col-md-2', 'centered', 'planetaryhour'].includes(x));
|
// classes = classes.concat(Array.from(el.classList));
|
||||||
classes.forEach( function(el) {
|
// });
|
||||||
console.log('input#' + el);
|
// classes = Array.from(new Set(classes)).filter(x => !['col-md-2', 'centered', 'planetaryhour'].includes(x));
|
||||||
$('li.' + el).show();
|
// classes.forEach( function(el) {
|
||||||
$('input#' + el).parent().show();
|
// console.log('input#' + el);
|
||||||
});
|
// $('li.' + el).show();
|
||||||
|
// $('input#' + el).parent().show();
|
||||||
|
// });
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -482,8 +478,8 @@ SL.Calendar = (function() {
|
||||||
actions += '<li class="operation '+menuItems[key].tags+'"><input type="checkbox" value=".'+id+'-'+key+'" id="'+id+'-'+key+'" /> '+menuItems[key].action+'</li>\n ';
|
actions += '<li class="operation '+menuItems[key].tags+'"><input type="checkbox" value=".'+id+'-'+key+'" id="'+id+'-'+key+'" /> '+menuItems[key].action+'</li>\n ';
|
||||||
});
|
});
|
||||||
// Hide all tags and actions by default
|
// Hide all tags and actions by default
|
||||||
$('li.operation').hide();
|
// $('li.operation').hide();
|
||||||
$('.actiontag').parent().hide();
|
// $('.actiontag').parent().hide();
|
||||||
// load template defined in index.html and append all filter data
|
// load template defined in index.html and append all filter data
|
||||||
$('<div/>').loadTemplate($("#tpl-modal"), {
|
$('<div/>').loadTemplate($("#tpl-modal"), {
|
||||||
title : 'Filter by '+pluginDefinitions.name,
|
title : 'Filter by '+pluginDefinitions.name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue