From 31ab4d54da53bc31a291709d15a7ec4997cb8776 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Mon, 14 Feb 2011 10:18:30 +0300 Subject: [PATCH] * disable priority popup in pda style --- src/mytinytodo.js | 17 ++++++++++------- src/themes/default/index.php | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/mytinytodo.js b/src/mytinytodo.js index 202b9a0..69affae 100644 --- a/src/mytinytodo.js +++ b/src/mytinytodo.js @@ -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)); diff --git a/src/themes/default/index.php b/src/themes/default/index.php index 7f07245..3e58a57 100644 --- a/src/themes/default/index.php +++ b/src/themes/default/index.php @@ -48,6 +48,7 @@ $().ready(function(){ firstdayofweek: , autotag: + }).loadLists(1); });