Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
1aeadf01
Commit
1aeadf01
authored
Jan 03, 2014
by
Randall Leeds
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #952 from RawKStar77/threads2
Changed how threading works.
parents
522b1df3
9936f65f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
4 deletions
+51
-4
common.scss
h/css/common.scss
+41
-3
directives.coffee
h/js/directives.coffee
+10
-1
No files found.
h/css/common.scss
View file @
1aeadf01
...
...
@@ -771,9 +771,6 @@ blockquote {
}
&
>
.annotation
{
.body
{
font-size
:
.95em
;
}
.body
*
{
overflow
:
hidden
;
...
...
@@ -817,6 +814,47 @@ blockquote {
}
//COLLAPSED REPLIES////////////////////////////////
.reply-count
:hover
{
color
:
$linkColorHover
;
text-decoration
:
none
;
}
.collapsedreply
{
display
:
none
;
}
.hidereplies
{
display
:
block
;
li
{
display
:
none
;
&
.collapsedreplies
{
display
:
none
!
important
;
}
}
}
.collapsedreplies
{
@extend
.collapsed
;
display
:
block
!
important
;
.collapsedreply
{
display
:
inline
;
font-style
:
italic
;
margin-right
:
5px
;
margin-left
:
5px
;
}
&
>
.annotation
{
.body
{
display
:
none
;
}
.magicontrols
{
display
:
none
;
}
}
}
//MAGICONTROLS////////////////////////////////
.magicontrols
{
...
...
h/js/directives.coffee
View file @
1aeadf01
...
...
@@ -225,6 +225,16 @@ thread = ->
scope
.
collapsed
=
!
scope
.
collapsed
scope
.
openDetails
scope
.
annotation
unless
scope
.
collapsed
scope
.
toggleReplies
=
(
event
)
->
event
.
stopPropagation
()
scope
.
collapseReplies
=
!
scope
.
collapseReplies
# console.log "Works."
if
scope
.
collapseReplies
elem
.
addClass
'hidereplies'
else
elem
.
removeClass
'hidereplies'
unless
scope
.
collapseReplies
then
scope
.
collapsed
=
false
scope
.
$on
'toggleEditing'
,
(
event
)
->
{
$id
,
editing
}
=
event
.
targetScope
if
editing
...
...
@@ -237,7 +247,6 @@ thread = ->
delete
childrenEditing
[
$id
]
restrict
:
'C'
userPicker
=
->
restrict
:
'ACE'
scope
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment