* "read-only" replaced with "Public Tasks"

This commit is contained in:
Max Pozdeev 2009-12-01 16:18:38 +03:00
parent 7ab0d27dd1
commit c24dfbf9dd
7 changed files with 6 additions and 9 deletions

View file

@ -22,7 +22,6 @@ class Lang extends DefaultLang
'error' => "Ошибка",
'denied' => "Доступ запрещен",
'invalidpass' => "Неверный пароль",
'readonly' => "только для чтения",
'tagfilter' => "Тег:",
'addList' => "Новый список",
'renameList' => "Переименовать список",
@ -52,6 +51,7 @@ class Lang extends DefaultLang
'btn_login' => "Войти",
'a_login' => "Вход",
'a_logout' => "Выйти",
'public_tasks' => "Опубликованные задачи",
'tags' => "Теги",
'tagfilter_cancel' => "отменить фильтр по тегу",
'sortByHand' => "Сортировка вручную",

View file

@ -468,12 +468,11 @@ function updateAccessStatus()
}
if(flag.needAuth && !flag.isLogged) {
$('#page_tasks').addClass('readonly')
$("#authstr").text(lang.readonly).show();
addsearchToggle(1);
}
else {
$('#page_tasks').removeClass('readonly')
$("#authstr").text('').hide();
$("#bar_public").hide();
addsearchToggle(0);
}
$('#page_ajax').hide();
@ -931,6 +930,7 @@ function loadLists(onInit, updAccess)
else $('#btnPublish').removeClass('mtt-item-checked');
//if(curList.published)
$('#rss_icon').show().find('a').attr('href', 'feed.php?list='+curList.id);
if(flag.needAuth && !flag.isLogged) $('#bar_public').show();
}
else {
curList = 0;

View file

@ -96,8 +96,8 @@ $().ajaxStop( function(r,s) {$("#loading").fadeOut();} );
</span>
<span class="bar-delim" style="display:none"> | </span>
<span id="bar_auth">
<span id="bar_public" style="display:none"><?php _e('public_tasks');?> |</span>
<span id="bar_login"><a href="#" class="nodecor" onClick="showAuth(this);return false;"><u><?php _e('a_login');?></u> <img src="images/arrdown.gif" border=0></a></span>
<span id="authstr">&nbsp;</span>
<a href="#" id="bar_logout" onClick="logout();return false"><?php _e('a_logout');?></a>
</span>
</div>

View file

@ -17,7 +17,6 @@ class DefaultLang
'error' => "Some error occurred (click for details)",
'denied' => "Access denied",
'invalidpass' => "Wrong password",
'readonly' => "read-only",
'tagfilter' => "Tag:",
'addList' => "Create new list",
'addListDefault' => "Todo",
@ -48,6 +47,7 @@ class DefaultLang
'btn_login' => "Login",
'a_login' => "Login",
'a_logout' => "Logout",
'public_tasks' => "Public Tasks",
'tags' => "Tags",
'tagfilter_cancel' => "cancel filter",
'sortByHand' => "Sort by hand",

View file

@ -22,7 +22,6 @@ class Lang extends DefaultLang
'error' => "Some error occurred (click for details)",
'denied' => "Access denied",
'invalidpass' => "Wrong password",
'readonly' => "read-only",
'tagfilter' => "Tag:",
'addList' => "Create new list",
'renameList' => "Rename list",
@ -52,6 +51,7 @@ class Lang extends DefaultLang
'btn_login' => "Login",
'a_login' => "Login",
'a_logout' => "Logout",
'public_tasks' => "Public Tasks",
'tags' => "Tags",
'tagfilter_cancel' => "cancel filter",
'sortByHand' => "Sort by hand",

View file

@ -40,7 +40,6 @@ div.task-note-area textarea { width:95%; }
#loading { padding:0px; padding-top:1px; padding-right:1px; height:16px; overflow:hidden; }
#loading img { /*width:8px; height:8px;*/ }
#authstr { float:none; }
#tagcloud { max-width:100%; }
.mtt-settings-table .in350 { min-width:50px; }

View file

@ -109,8 +109,6 @@ div.task-note-area textarea { color:#999999; width:100%; display:block; height:6
.prio-o { background-color:#dedede; }
.task-prio.prio-o { display:none; }
#authstr { display: none; color:#ff0000; }
.form-row { margin-top:4px; margin-bottom:4px; }
.form-row .h { font-weight:bold; color:#333333; }
#overlay { position:fixed; z-index:200; background-color:#111111; display:none; top:0px; left:0px; width:100%; height:100%; }