From 53adca8db843d9046cf398b4f16da7c8d344f7a0 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Sat, 12 Jun 2010 15:48:18 +0400 Subject: [PATCH] interface taken from firefox extension --- src/lang/class.default.php | 1 + src/lang/en.php | 1 + src/mytinytodo.js | 3 +- src/themes/default/images/bullet_plus.png | Bin 483 -> 0 bytes src/themes/default/images/magnifier.png | Bin 0 -> 615 bytes src/themes/default/images/page_white_edit.png | Bin 618 -> 0 bytes .../default/images/page_white_edit_bw.png | Bin 550 -> 0 bytes src/themes/default/index.php | 111 +++++++++--------- src/themes/default/style.css | 65 ++++++++-- 9 files changed, 113 insertions(+), 68 deletions(-) delete mode 100644 src/themes/default/images/bullet_plus.png create mode 100644 src/themes/default/images/magnifier.png delete mode 100644 src/themes/default/images/page_white_edit.png delete mode 100644 src/themes/default/images/page_white_edit_bw.png diff --git a/src/lang/class.default.php b/src/lang/class.default.php index 83db4e0..3debe89 100644 --- a/src/lang/class.default.php +++ b/src/lang/class.default.php @@ -83,6 +83,7 @@ class DefaultLang 'list_publish' => "Publish list", 'list_showcompleted' => "Show completed tasks", 'list_clearcompleted' => "Clear completed tasks", + 'list_select' => "Select list", 'alltags' => "All tags:", 'alltags_show' => "Show all", 'alltags_hide' => "Hide all", diff --git a/src/lang/en.php b/src/lang/en.php index dc71120..516cae4 100644 --- a/src/lang/en.php +++ b/src/lang/en.php @@ -85,6 +85,7 @@ class Lang extends DefaultLang 'list_publish' => "Publish list", 'list_showcompleted' => "Show completed tasks", 'list_clearcompleted' => "Clear completed tasks", + 'list_select' => "Select list", 'alltags' => "All tags:", 'alltags_show' => "Show all", 'alltags_hide' => "Hide all", diff --git a/src/mytinytodo.js b/src/mytinytodo.js index c65192e..2f48069 100644 --- a/src/mytinytodo.js +++ b/src/mytinytodo.js @@ -12,7 +12,7 @@ var sortOrder; //save task order before dragging var searchTimer; var objPrio = {}; var selTask = 0; -var flag = { needAuth:false, isLogged:false, tagsChanged:true, windowTaskEditMoved:false, autoTag:true }; +var flag = { needAuth:false, isLogged:false, tagsChanged:true, windowTaskEditMoved:false }; var taskCnt = { total:0, past: 0, today:0, soon:0 }; var tmp = {}; var cmenu; @@ -114,6 +114,7 @@ var mytinytodo = window.mytinytodo = _mtt = { $('#search_close').click(function(){ addsearchToggle(0); + return false; }); $('#search').keyup(timerSearch); diff --git a/src/themes/default/images/bullet_plus.png b/src/themes/default/images/bullet_plus.png deleted file mode 100644 index fb47633973277fbdc415afe83d0bdc62f165c3e4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 483 zcmV<90UZ8`P)`wYPAYM5Wp}DRhPNjEVivp#9B$DL>75`&7R6ePK=Xtv1 zfBFfPqwF%6Kbnig6G@W5aU58d9W@$_8Jhlo@2s3HBUPEjQZX^|kJD50)832sV*`;5 Zd;_y-qpsK@7cKw*002ovPDHLkV1l#s$A|y` diff --git a/src/themes/default/images/magnifier.png b/src/themes/default/images/magnifier.png new file mode 100644 index 0000000000000000000000000000000000000000..cf3d97f75e9cde9c143980d89272fe61fc2d64ee GIT binary patch literal 615 zcmV-t0+{`YP)gNuvOO$0ks zMIj=HnnBRUR?tKXG11rxCU4&7dG4NbuvR2_mEvc)n?Cow;~Wve|KR^>9@p5l)|QB+ z$jmun3q#x>;ss-PW_mnr2MHVzLAl1RW&0?VkixF*4t!St0YVb2wnKdU(kmOHiL;aW zK8Xte%(k>MVGG$E4no6dcNnb>BhVHHGD&1pv4YZ68kE2V03t5#PCEFm7=ad$6)+3B zTCmn*?A?=u(o~ET7~-7g0)ZB=6|lumi4}B}MLgy~Ysy6)Q5%Al7|05&1z3Jpu>cF8 z3?VXs*3<}%h3`5Wld)N2zJnk%Agw<~3k)sPTLFd=F5;d8-bj-09SkQuynfflNcZLN z!^_37fdZvzrq=9~mp*($%mcDRKC&qvaaZuX+C=AT6O*~tHl>0mcP<_q>-z%$xO(@! zYluq5a8VQI$S@4?r*v;gPo!QQ%pX3A#>xx4t=w-L6COWx?aj&`f+!YePsFtj=hOQR zP3=E2j@9L7s8;T^&s?u(Hdpu?CubjMrGn{t_37>9$|AD)QE08weJlKn8|OyjL~7oP zC8mPT`jzuH*Dh^I0048RGafUIT)4H~*m8m>egI0iH=(LB%b@@O002ovPDHLkV1lw0 B3$>5Y&axjp2O=VLu>*f>1L;s0)kkvKC!*u?s6CVL=HJ6oP~pNfZc; zsKr=bq;7MITw8NXw{SZm%59TId2x_9BQ zV86`NuvGI!>o^V!Na!=$7GJE{Cq`b+XwknM{UcGHFTTfmuS+ zm-zYC!P3+zmY;SG$?!fYkOih`QYaLxyF}A86h$GGN}kFj)_o*0e zjPMP%zTG7FYMAfO2Nn1D`D0Cj?Wl>5q%@CE10nX)KxpNmwk+!IWkzywiYD( zqUXiYYIq3qcRyMGJ;IY`(Gz~E$J$zu2+R{)xGlE*88b3WK6V*J>}2iPY1HH|tER0W z_+^^FdppY?o)Gt5M2`%xwRDH@R3G}^i1l4|6uchm0X0f!@&YdVLB5K&dd7Rv{)DXX zt^&vP;}kqj3f>94j+4xd93>s|Q!Ezi>?r8(Il$P}PFxSqu{d*!Y%*#cX(R0f|Juz# z3o0_xI14Al->1uky@W-rCI_%l&>0@?kEP) zOKQSU7=>%Qh)!DQtP4kB-e7(()oK;P z;SiI_1o?bkzW^{Brhj@S-_*I;Y?`22t;TII3rZ{&`@8^Lhc_ON(P%Wdm2S6-!C=5w zLIAJV`(@bw&%g?xz^I$GxYcSQo6TZ6oq}?+1yHwAsl=B}UCA@qNT<_0P-;_)~nN#ey10e-)q2S*YF0f9h( zZ{L2uH+6Rf9*+k;pAX@1n5RviX-loL1Dx&7!HxGPBSiB^xY!@4v5B^a$pSgCxhku4 oS`XAa8@LQA?e8N|G1WZ%0OAvZW7mbO4FCWD07*qoM6N<$f?C(^nE(I) diff --git a/src/themes/default/index.php b/src/themes/default/index.php index 515403f..3f47058 100644 --- a/src/themes/default/index.php +++ b/src/themes/default/index.php @@ -1,21 +1,7 @@ -'; -?> - + <?php mttinfo('title'); ?> @@ -45,51 +31,15 @@ $().ready(function(){ mytinytodo.templateUrl = ""; mytinytodo.db = new mytinytodoStorageAjax(mytinytodo); mytinytodo.init({ + needAuth: , + isLogged: , showdate: , singletab: , - needAuth: , - isLogged: - + duedateformat: , + autotag: + }, lang).loadLists(1); }); - -/* -$().ready(function(){ - mytinytodo.mttUrl = ""; - $("#tasklist").sortable({cancel:'span,input,a,textarea', delay: 150, update:orderChanged, start:sortStart, items:'> :not(.task-completed)'}); - $("#tasklist").bind("click", tasklistClick); - $("#edittags").autocomplete('ajax.php?suggestTags', {scroll: false, multiple: true, selectFirst:false, max:8, extraParams:{list:function(){return curList.id}}}); - $("#priopopup").mouseleave(function(){$(this).hide()}); - - $("#duedate").datepicker({dateFormat: '', firstDay: , - showOn: 'button', buttonImage: 'images/calendar.png', buttonImageOnly: true, changeMonth:true, - changeYear:true, constrainInput: false, duration:'', nextText:'>', prevText:'<', dayNamesMin:lang.daysMin, - dayNames:lang.daysLong, monthNamesShort:lang.monthsLong }); - - $("#page_taskedit").draggable({ handle:'h3', stop: function(e,ui){ flag.windowTaskEditMoved=true; tmp.editformpos=[$(this).css('left'),$(this).css('top')]; } }); - $("#page_taskedit").resizable({ minWidth:$("#page_taskedit").width(), minHeight:220, start:function(ui,e){editFormResize(1)}, resize:function(ui,e){editFormResize(0,e)}, stop:function(ui,e){editFormResize(2,e)} }); - - flag.pda = true; - - - mytinytodo.addAction('listsLoaded', tplSingleTabLoaded); - mytinytodo.addAction('listRenamed', tplSingleTabRenamed); - mytinytodo.addAction('listAdded', tplSingleTabAdded); - - - $("#lists ul").sortable({delay:150, update:listOrderChanged}); - -}); -*/
@@ -121,9 +71,50 @@ $().ready(function(){
    -
    + + +
    +
    +
    +
    +
    +
    + + +
    + + +
    + + + +
    + + +
    +
    +
    + + + +
    + +

    (0) @@ -268,6 +260,11 @@ $().ready(function(){

    + + diff --git a/src/themes/default/style.css b/src/themes/default/style.css index ff707ee..1bad13b 100644 --- a/src/themes/default/style.css +++ b/src/themes/default/style.css @@ -33,6 +33,7 @@ a { color:#0000ff; cursor:pointer; text-decoration:underline; } #authform { overflow: hidden; z-index:100; background-color:#f9f9f9; border:1px solid #cccccc; padding:5px; width:160px; } #authform div { padding:2px 0px; } #authform div.h { font-weight:bold; } +#loading { float:left; padding-top:5px; background-color:#ffffff; display:none; padding-right:6px; width:16px; height:16px; background:url(images/loading1.gif) no-repeat; } #msg { float:left; } #msg .msg-text { padding:1px 4px; font-weight:bold; cursor:pointer; } @@ -57,13 +58,44 @@ a { color:#0000ff; cursor:pointer; text-decoration:underline; } #page_tasks.readonly .list-action { display:none; } #page_tasks.readonly li.mtt-tabs-selected span { margin-right:0; } -.mtt-tabs-add-button { float:left; margin-top:1px; padding:6px 2px 0px 2px; font-size:9pt; width:16px; border-left:1px solid #ededed; background:#fbfbfb url(images/tab_hover.gif) no-repeat top right; } -.mtt-tabs-add-button:hover { cursor:pointer; } -.mtt-tabs-add-button span { display:block; height:21px; background:url(images/bullet_plus.png) 0 0 no-repeat; } -.mtt-tabs-add-button:hover span { background-position:-16px 0; } -#page_tasks.readonly .mtt-tabs-add-button { display:none; } +#tabs_buttons { + float:right; + padding-top:4px; + padding-bottom:3px; + padding-left:2px; + padding-right:2px; + border:1px solid #ededed; + border-bottom:none; + -moz-border-radius-topleft:5px; -webkit-border-radius-topleft:5px; + -moz-border-radius-topright:5px; -webkit-border-radius-topright:5px; +} -.mtt-htabs { clear:both; padding:8px; border-bottom:2px solid #DEDEDE; background:url(images/corner_right.gif) no-repeat top right #ededed; } +.mtt-tabs-button { + float:left; + font-size:9pt; + cursor:pointer; + padding:1px; /* makes button bigger */ + border:1px solid transparent; /* preallocate space for :hover border */ +} + +.mtt-tabs-button span { + display:block; + width:16px; + height:16px; +} + +.mtt-tabs-button:hover, .mtt-tabs-button.mtt-menu-button-active { + border:1px solid #ccc; -moz-border-radius:3px; -webkit-border-radius:3px; +} + +.mtt-tabs-add-button>span { background:url(images/buttons.png) 0 0 no-repeat; } +.mtt-tabs-add-button:hover>span { background-position:-16px 0; } +.mtt-tabs-search-button>span { background:url(images/buttons.png) 0 -16px no-repeat; } +.mtt-tabs-search-button:hover>span { background-position:-16px -16px; } +.mtt-tabs-select-button>span { background:url(images/icons.gif) -64px 0 no-repeat; } +.mtt-tabs-select-button:hover>span, .mtt-tabs-select-button.mtt-menu-button-active>span { background-position:-80px 0; } + +.mtt-htabs { clear:both; padding:8px; border-bottom:2px solid #DEDEDE; background:#ededed; } .mtt-img-button { width:16px; height:16px; padding:2px; border:1px solid transparent; } .mtt-img-button:hover { border:1px solid #ccc; -moz-border-radius:3px; -webkit-border-radius:3px; } @@ -71,17 +103,27 @@ a { color:#0000ff; cursor:pointer; text-decoration:underline; } #newtask_adv span { position:relative; top:3px; background:url(images/buttons.png) 0 -48px no-repeat; } #newtask_adv:hover span { background-position:-16px -48px; } +#search_close { float:right; margin-left:2px; position:relative; top:1px;} +#search_close span { background:url(images/buttons.png) 0 -32px no-repeat; } +#search_close:hover span { background-position:-16px -32px; } #rss_icon { float:right;margin-top:4px; } #rss_icon img { border:none; } .arrdown { display:inline-block; height:7px; width:9px; background:url(images/arrdown.gif); } .arrdown2 { display:inline-block; height:7px; width:7px; background:url(images/arrdown2.gif); } -#page_tasks.readonly #htab_search a.htab-toggle { color:#444; } +#task { color:#444444; width:100%; max-width:350px; } +#newtask_form table { max-width:400px; } +#newtask_form .flex-cell-companion { padding-left:2px; } +#search_form table { max-width:350px; } +#search_form .flex-cell-companion { padding-left:2px; } -#htab_newtask a>img { border:none; vertical-align:text-top; } -#loading { float:left; padding-top:5px; background-color:#ffffff; display:none; padding-right:6px; width:16px; height:16px; background:url(images/loading1.gif) no-repeat; } -#task, #search { color:#444444; width:300px; } +#search { color:#444444; width:100%; max-width:300px; + background:#fff url(images/magnifier.png) no-repeat 2px 2px; + text-indent:18px; + border:1px inset #f0f0f0; + padding:2px; +} .small-bar{ font-size:8pt; color:#999999; font-weight:normal;} #searchbar { font-size:10pt; font-weight:normal; display:none; margin-top:5px; } #searchbarkeyword { font-weight:bold; } @@ -259,6 +301,9 @@ li.mtt-menu-indicator .submenu-icon { width:16px; height:16px; background:url(images/icons.gif) -32px -16px no-repeat; } +.flex-cell { width:99%; /*padding-left:3px;*/ padding-right:6px; white-space:nowrap; } +.flex-cell-companion { width:1%; white-space:nowrap; } + .mtt-settings-table { width:100%; border-collapse:collapse; } .mtt-settings-table th, .mtt-settings-table td { border-bottom:1px solid #dedede; padding:8px; vertical-align:top; } .mtt-settings-table .form-buttons { border-bottom:none; text-align:center; }