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
67ab7b20
Commit
67ab7b20
authored
Mar 31, 2014
by
RawKStar77
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Greatly simplified code using angular animation and ng-show
parent
823e057a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
common.scss
h/css/common.scss
+3
-2
controllers.coffee
h/js/controllers.coffee
+0
-11
No files found.
h/css/common.scss
View file @
67ab7b20
...
...
@@ -1220,8 +1220,9 @@ h3.stream {
right
:
0
;
z-index
:
4
;
&
.hidden
{
display
:
none
;
&
.ng-hide
{
top
:
0
;
display
:block
!
important
;
}
}
...
...
h/js/controllers.coffee
View file @
67ab7b20
...
...
@@ -16,10 +16,6 @@ class App
annotator
,
authentication
,
baseURI
,
streamfilter
,
viewFilter
)
->
{
plugins
,
host
,
providers
}
=
annotator
#This must be set so the view sort controller can autohide.
$scope
.
show_search
=
false
$scope
.
show_view_sort
=
false
$scope
.
$watch
'auth.personas'
,
(
newValue
,
oldValue
)
=>
unless
newValue
?
.
length
...
...
@@ -708,13 +704,6 @@ class Viewer
{
sort
:
'Location'
}]
$scope
.
predicate
=
'updated'
$scope
.
reverse
=
true
$scope
.
hidden
=
'hidden'
$scope
.
$watch
'show_view_sort'
,
(
newValue
,
oldValue
)
->
if
newValue
==
true
$scope
.
hidden
=
''
if
newValue
==
false
$scope
.
hidden
=
'hidden'
$scope
.
focus
=
(
annotation
)
->
if
angular
.
isArray
annotation
...
...
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