* disable priority popup in pda style

This commit is contained in:
Max Pozdeev 2011-02-14 10:18:30 +03:00
parent ee7a80de54
commit 31ab4d54da
2 changed files with 11 additions and 7 deletions

View file

@ -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));

View file

@ -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>