fixed renaming and adding of lists

This commit is contained in:
Hendrik Leppelsack 2015-06-11 09:34:38 +02:00
Родитель ee19a42cc4
Коммит bc25b04f8a
3 изменённых файлов: 20 добавлений и 20 удалений

Просмотреть файл

@ -17,9 +17,6 @@
overflow: hidden;
color: #423E3E;
}
#content #tasks_wrapper {
height: 100%;
}
#content .icon {
background-image: url("../img/sprites.svg");
height: 20px;

Просмотреть файл

@ -42,9 +42,6 @@
#content{
overflow:hidden;
color: #423E3E;
#tasks_wrapper{
height: 100%;
}
.icon{
background-image: url("../img/sprites.svg");
height:20px;
@ -1300,4 +1297,4 @@ div.percentdone{
margin: -5px 4px 0;
padding: 2px 5px;
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
<div ng-app="Tasks" ng-cloak ng-controller="AppController" ng-click="closeAll($event)" id="tasks_wrapper" class="handler">
<div ng-app="Tasks" ng-cloak ng-controller="AppController" ng-click="closeAll($event)" id="app" class="handler">
<div id="app-navigation" ng-controller="ListController">
<ul id="collections">
<li ng-repeat="collection in collections" id="collection_{{ collection.id }}" rel="{{ collection.id }}"
@ -13,33 +13,39 @@
</ul>
</div>
</li>
<li ng-repeat="list in lists" id="list_{{ list.id }}" rel="{{ list.id }}" class="with-menu" ng-class="{active: list.id==route.listID}" oc-drop-task>
<a href="#/lists/{{ list.id }}" style="border-right: 4px solid {{ list.calendarcolor }};">
<li ng-repeat="list in lists" id="list_{{ list.id }}" rel="{{ list.id }}" class="with-menu handler"
ng-class="{active: list.id==route.listID}" oc-drop-task>
<a href="#/lists/{{ list.id }}" style="border-right: 4px solid {{ list.calendarcolor }};" ng-dblclick="editName(list.id)" ng-if-start="route.listparameter != 'name' || route.listID != list.id">
<span class="icon list-list"></span>
<span class="title"><text ng-dblclick="editName(list.id)" oc-click-focus="{selector: 'input.edit', timeout: 0}" ng-hide="route.listparameter=='name' && route.listID == list.id">{{ list.displayname }}</text></span>
<input ng-model="list.displayname" class="edit handler" type="text" ng-show="route.listparameter=='name' && route.listID == list.id" ng-keydown="checkName($event)">
<span class="title">{{ list.displayname }}</span>
</a>
<div class="app-navigation-entry-utils">
<ul>
<li class="app-navigation-entry-utils-counter"><text ng-show="getListCount(list.id,'all')">{{ getListCount(list.id,'all') }}</text></li>
<li class="app-navigation-entry-utils-counter">{{ getListCount(list.id,'all') }}</li>
<li class="app-navigation-entry-utils-menu-button svg"><button></button></li>
</ul>
</div>
<div class="app-navigation-entry-menu">
<div class="app-navigation-entry-menu" ng-if-end>
<ul>
<li><button class="icon-rename svg" title="rename" ng-click="editName(list.id)"></button></li>
<li><button class="icon-delete svg" title="delete" ng-click="deleteList(list.id)" ng-show="showDelete(list.id)"></button></li>
</ul>
</div>
<div class="app-navigation-entry-edit" ng-if="route.listparameter == 'name' && route.listID == list.id">
<form>
<input ng-model="list.displayname" class="edit" type="text" ng-keydown="checkName($event)" autofocus-on-insert>
<input type="submit" value="" class="action icon-checkmark svg">
</form>
</div>
</li>
<li>
<a class="addlist handler" ng-click="startAddingList()" stop-event="click" oc-click-focus="{selector: '#newList', timeout: 0}">
<li class="handler">
<a class="addlist" ng-click="startAddingList()" oc-click-focus="{selector: '#newList', timeout: 0}">
<span class="icon detail-add"></span>
<span class="title"><text><?php p($l->t('Add List...')); ?></text></span>
<span class="title" ng-hide="status.addingList"><?php p($l->t('Add List...')); ?></span>
<input id="newList" ng-model="status.newListName" class="edit" type="text" ng-disabled="isAddingList" ng-show="status.addingList"
stop-event="click" placeholder="<?php p($l->t('New List')); ?>" ng-keydown="checkListInput($event)" />
placeholder="<?php p($l->t('New List')); ?>" ng-keydown="checkListInput($event)" />
</a>
<li>
</li>
</ul>
<div id="app-settings" ng-controller="SettingsController">
<div id="app-settings-header">
@ -52,7 +58,7 @@
<ul>
<li ng-repeat="collection in collections">
<span class="icon collection-{{ collection.id }}"><text ng-show="collection.id=='today'"><?php p($_['DOM']); ?></text></span>
<label for="visibilityCollection-{{collection.id}}" class="title"><text>{{ collection.displayname }}</text></label>
<label for="visibilityCollection-{{collection.id}}" class="title">{{ collection.displayname }}</label>
<select id="visibilityCollection-{{collection.id}}" ng-change="setVisibility(collection.id)" ng-model="collection.show" ng-options="collectionOption.id as collectionOption.name for collectionOption in collectionOptions"></select>
</li>
</ul>