mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* disable priority popup in pda style
This commit is contained in:
parent
ee7a80de54
commit
31ab4d54da
2 changed files with 11 additions and 7 deletions
|
|
@ -53,7 +53,8 @@ var mytinytodo = window.mytinytodo = _mtt = {
|
|||
tagPreview: true,
|
||||
tagPreviewDelay: 700, //milliseconds
|
||||
saveShowNotes: false,
|
||||
firstdayofweek: 1
|
||||
firstdayofweek: 1,
|
||||
touchDevice: false
|
||||
},
|
||||
|
||||
timers: {
|
||||
|
|
@ -362,12 +363,14 @@ var mytinytodo = window.mytinytodo = _mtt = {
|
|||
return false;
|
||||
});
|
||||
|
||||
$('#tasklist .task-prio').live('mouseover mouseout', function(event){
|
||||
var id = parseInt(getLiTaskId(this));
|
||||
if(!id) return;
|
||||
if(event.type == 'mouseover') prioPopup(1, this, id);
|
||||
else prioPopup(0, this);
|
||||
});
|
||||
if(!this.options.touchDevice) {
|
||||
$('#tasklist .task-prio').live('mouseover mouseout', function(event){
|
||||
var id = parseInt(getLiTaskId(this));
|
||||
if(!id) return;
|
||||
if(event.type == 'mouseover') prioPopup(1, this, id);
|
||||
else prioPopup(0, this);
|
||||
});
|
||||
}
|
||||
|
||||
$('#tasklist .mtt-action-note-cancel').live('click', function(){
|
||||
var id = parseInt(getLiTaskId(this));
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ $().ready(function(){
|
|||
firstdayofweek: <?php echo (int) Config::get('firstdayofweek'); ?>,
|
||||
autotag: <?php echo Config::get('autotag') ? "true" : "false"; ?>
|
||||
<?php if(isset($_GET['list'])) echo ",openList: ". (int)$_GET['list']; ?>
|
||||
<?php if(isset($_GET['pda'])) echo ", touchDevice: true"; ?>
|
||||
}).loadLists(1);
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue