mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
move calendar icon path to template js init
This commit is contained in:
parent
30c9cca2d4
commit
1d71b923f4
2 changed files with 19 additions and 4 deletions
|
|
@ -54,7 +54,8 @@ var mytinytodo = window.mytinytodo = _mtt = {
|
|||
tagPreviewDelay: 700, //milliseconds
|
||||
saveShowNotes: false,
|
||||
firstdayofweek: 1,
|
||||
touchDevice: false
|
||||
touchDevice: false,
|
||||
calendarIcon: 'calendar.png' // need templateUrl+icon
|
||||
},
|
||||
|
||||
timers: {
|
||||
|
|
@ -311,13 +312,25 @@ var mytinytodo = window.mytinytodo = _mtt = {
|
|||
dateFormat: _mtt.duedatepickerformat(),
|
||||
firstDay: _mtt.options.firstdayofweek,
|
||||
showOn: 'button',
|
||||
buttonImage: _mtt.templateUrl + 'images/calendar.svg', buttonImageOnly: true,
|
||||
buttonImage: _mtt.options.calendarIcon,
|
||||
buttonImageOnly: true,
|
||||
constrainInput: false,
|
||||
duration:'',
|
||||
dayNamesMin:_mtt.lang.daysMin, dayNames:_mtt.lang.daysLong, monthNamesShort:_mtt.lang.monthsLong
|
||||
dayNamesMin:_mtt.lang.daysMin,
|
||||
dayNames:_mtt.lang.daysLong,
|
||||
monthNamesShort:_mtt.lang.monthsLong
|
||||
});
|
||||
|
||||
$("#edittags").autocomplete('ajax.php?suggestTags', {scroll: false, multiple: true, selectFirst:false, max:8, extraParams:{list:function(){ var taskId = document.getElementById('taskedit_form').id.value; return taskList[taskId].listId; }}});
|
||||
$("#edittags").autocomplete('ajax.php?suggestTags', {
|
||||
scroll: false,
|
||||
multiple: true,
|
||||
selectFirst:false,
|
||||
max:8,
|
||||
extraParams:{ list:function(){
|
||||
var taskId = document.getElementById('taskedit_form').id.value;
|
||||
return taskList[taskId].listId;
|
||||
}}
|
||||
});
|
||||
|
||||
$('#taskedit_form').find('select,input,textarea').bind('change keypress', function(){
|
||||
flag.editFormChanged = true;
|
||||
|
|
|
|||
|
|
@ -47,9 +47,11 @@ $().ready(function(){
|
|||
singletab: <?php echo (isset($_GET['singletab']) || Config::get('mobile')) ? "true" : "false"; ?>,
|
||||
duedatepickerformat: "<?php echo htmlspecialchars(Config::get('dateformat2')); ?>",
|
||||
firstdayofweek: <?php echo (int) Config::get('firstdayofweek'); ?>,
|
||||
calendarIcon: mytinytodo.templateUrl + 'images/calendar.svg',
|
||||
autotag: <?php echo Config::get('autotag') ? "true" : "false"; ?>
|
||||
<?php if(isset($_GET['list'])) echo ",openList: ". (int)$_GET['list']; ?>
|
||||
<?php if(Config::get('mobile')) echo ", touchDevice: true"; ?>
|
||||
|
||||
}).loadLists(1);
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue