Remove debug and extra new lines
This commit is contained in:
parent
c340d590f7
commit
71e93d9eb9
2 changed files with 11 additions and 24 deletions
|
@ -30,7 +30,6 @@
|
||||||
$('#id_finish_text').prop("disabled", false);
|
$('#id_finish_text').prop("disabled", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#events-calendar').fullCalendar({
|
$('#events-calendar').fullCalendar({
|
||||||
firstDay: '{{$i18n.firstDay|escape:'quotes'}}',
|
firstDay: '{{$i18n.firstDay|escape:'quotes'}}',
|
||||||
|
@ -105,7 +104,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
eventRender: function(event, element, view) {
|
eventRender: function(event, element, view) {
|
||||||
//console.log(view.name);
|
|
||||||
if (event.item['author-name']==null) return;
|
if (event.item['author-name']==null) return;
|
||||||
switch(view.name){
|
switch(view.name){
|
||||||
case "month":
|
case "month":
|
||||||
|
@ -141,15 +139,15 @@
|
||||||
|
|
||||||
// center on date
|
// center on date
|
||||||
var args=location.href.replace(baseurl,"").split("/");
|
var args=location.href.replace(baseurl,"").split("/");
|
||||||
{{if $modparams == 2}}
|
{{if $modparams == 2}}
|
||||||
if (args.length>=5) {
|
if (args.length>=5) {
|
||||||
$("#events-calendar").fullCalendar('gotoDate',args[3] , args[4]-1);
|
$("#events-calendar").fullCalendar('gotoDate',args[3] , args[4]-1);
|
||||||
}
|
}
|
||||||
{{else}}
|
{{else}}
|
||||||
if (args.length>=4) {
|
if (args.length>=4) {
|
||||||
$("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1);
|
$("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1);
|
||||||
}
|
}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
// show event popup
|
// show event popup
|
||||||
var hash = location.hash.split("-")
|
var hash = location.hash.split("-")
|
||||||
|
@ -158,13 +156,11 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
{{if $editselect != 'none'}}
|
{{if $editselect != 'none'}}
|
||||||
<script language="javascript" type="text/javascript"
|
<script language="javascript" type="text/javascript"
|
||||||
src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
|
||||||
|
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
mode : "textareas",
|
mode : "textareas",
|
||||||
|
@ -181,8 +177,6 @@
|
||||||
entity_encoding : "raw",
|
entity_encoding : "raw",
|
||||||
add_unload_trigger : false,
|
add_unload_trigger : false,
|
||||||
remove_linebreaks : false,
|
remove_linebreaks : false,
|
||||||
//force_p_newlines : false,
|
|
||||||
//force_br_newlines : true,
|
|
||||||
forced_root_block : 'div',
|
forced_root_block : 'div',
|
||||||
content_css: "{{$baseurl}}/view/custom_tinymce.css",
|
content_css: "{{$baseurl}}/view/custom_tinymce.css",
|
||||||
theme_advanced_path : false,
|
theme_advanced_path : false,
|
||||||
|
@ -197,15 +191,14 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('.comment-edit-bb').hide();
|
$('.comment-edit-bb').hide();
|
||||||
});
|
});
|
||||||
{{else}}
|
{{else}}
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
{{if $editselect = 'none'}}
|
{{if $editselect = 'none'}}
|
||||||
$("#comment-edit-text-desc").bbco_autocomplete('bbcode');
|
$("#comment-edit-text-desc").bbco_autocomplete('bbcode');
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
$('#id_share').change(function() {
|
$('#id_share').change(function() {
|
||||||
|
|
||||||
|
@ -217,7 +210,6 @@
|
||||||
}
|
}
|
||||||
}).trigger('change');
|
}).trigger('change');
|
||||||
|
|
||||||
|
|
||||||
$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
|
$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
|
||||||
var selstr;
|
var selstr;
|
||||||
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
<script type="text/javascript" src="{{$baseurl}}/library/fullcalendar/fullcalendar.min.js"></script>
|
<script type="text/javascript" src="{{$baseurl}}/library/fullcalendar/fullcalendar.min.js"></script>
|
||||||
<script type="text/javascript" src="view/theme/frio/js/mod_events.js"></script>
|
<script type="text/javascript" src="view/theme/frio/js/mod_events.js"></script>
|
||||||
|
|
||||||
|
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
// pass php translation strings to js variables/arrays so we can make use of it in js files
|
// pass php translation strings to js variables/arrays so we can make use of it in js files
|
||||||
aStr.monthNames = [
|
aStr.monthNames = [
|
||||||
|
@ -79,7 +78,6 @@
|
||||||
src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
|
||||||
|
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
mode : "textareas",
|
mode : "textareas",
|
||||||
|
@ -96,8 +94,6 @@
|
||||||
entity_encoding : "raw",
|
entity_encoding : "raw",
|
||||||
add_unload_trigger : false,
|
add_unload_trigger : false,
|
||||||
remove_linebreaks : false,
|
remove_linebreaks : false,
|
||||||
//force_p_newlines : false,
|
|
||||||
//force_br_newlines : true,
|
|
||||||
forced_root_block : 'div',
|
forced_root_block : 'div',
|
||||||
content_css: "{{$baseurl}}/view/custom_tinymce.css",
|
content_css: "{{$baseurl}}/view/custom_tinymce.css",
|
||||||
theme_advanced_path : false,
|
theme_advanced_path : false,
|
||||||
|
@ -112,15 +108,14 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('.comment-edit-bb').hide();
|
$('.comment-edit-bb').hide();
|
||||||
});
|
});
|
||||||
{{else}}
|
{{else}}
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
{{if $editselect = 'none'}}
|
{{if $editselect = 'none'}}
|
||||||
$("#comment-edit-text-desc").bbco_autocomplete('bbcode');
|
$("#comment-edit-text-desc").bbco_autocomplete('bbcode');
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue