Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf5ed84

Browse files
authored
Merge pull request#19 from cristianmusic7/master
drag and drop style, new entry focus and delete display fixes
2 parents3cf1ad8 +7c34f03 commitbf5ed84

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

‎example/notebook/res/sass/_style-guide-base.scss‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,11 @@
282282
}
283283
}
284284

285-
.icon-notebook{
286-
margin-right:5px;
285+
286+
.frame{
287+
.icon-notebook{
288+
margin-right:5px;
289+
}
287290
}
288291

289292
.overlay.l-dialog.title{

‎example/notebook/res/templates/notebook.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151

5252
<!-- entries -->
5353

54-
<divclass="entries-wrapper">
54+
<divclass="entries-wrapper"ng-mouseover="handleActive()">
5555
<ulclass="entries-list">
56-
<liclass="entry l-flex-row"id="{{'entry_'+entry.createdOn}}"ng-if="hoursFilter(showTime,entry.createdOn)"ng-repeat="entry in model.entries | filter:entrySearch | orderBy: sortEntries track by $index"ng-class="{active : (!entry.embeds.length && !entry.text) }"ng-init="$last && finished(model.entries)"mct-entry-dnd>
56+
<liclass="entry l-flex-row"id="{{'entry_'+entry.createdOn}}"ng-if="hoursFilter(showTime,entry.createdOn)"ng-repeat="entry in model.entries | filter:entrySearch | orderBy: sortEntries track by $index"ng-init="$last && finished(model.entries)"mct-entry-dnd>
5757
<divclass="entry-time">{{entry.createdOn | date:'yyyy-MM-dd hh:mm:ss'}}</div>
5858
<divclass="entry-info">
5959
<divclass="entry-text">

‎example/notebook/src/controllers/notebookController.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ define(
138138
}
139139
}
140140

141+
$scope.handleActive=function(){
142+
varnewEntry=$scope.entriesEl.find('.active');
143+
if(newEntry){
144+
newEntry.removeClass('active');
145+
}
146+
}
147+
148+
141149
$scope.clearSearch=function(){
142150
$scope.entrySearch='';
143151
}

‎example/notebook/src/entryDnd.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ define([
3333
functionentryDnd($rootScope,$compile,dndService,typeService){
3434

3535
functionlink($scope,$element){
36-
varframe=$element.parent();
37-
varactionCapability=$scope.domainObject.getCapability('action');
3836
vardomainObj=$scope.domainObject;
3937

4038
functiondrop(e){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp