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
9b0205d9
Commit
9b0205d9
authored
Jul 24, 2013
by
Kristof Csillag
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #534 from hypothesis/521-streamer-updates-are-broken
fixes #521
parents
eef0811f
cbfc19fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
displayer.coffee
h/js/displayer.coffee
+1
-1
streamer.coffee
h/js/streamer.coffee
+5
-5
streamfilter.coffee
h/js/streamfilter.coffee
+5
-5
No files found.
h/js/displayer.coffee
View file @
9b0205d9
...
...
@@ -90,7 +90,7 @@ class Displayer
@
idTable
[
annotation
.
id
]
=
annotation
replies
.
splice
pos
,
0
,
annotation
when
'
edit
'
when
'
update
'
$scope
.
change_annotation_content
annotation
.
id
,
annotation
when
'delete'
...
...
h/js/streamer.coffee
View file @
9b0205d9
...
...
@@ -50,11 +50,11 @@ class Streamer
@
sfilter
.
setActionCreate
(
params
.
action_create
)
else
@
sfilter
.
setActionCreate
(
params
.
action_create
is
'true'
)
if
params
.
action_
edit
if
(
typeof
params
.
action_
edit
)
is
'boolean'
@
sfilter
.
setAction
Edit
(
params
.
action_edit
)
if
params
.
action_
update
if
(
typeof
params
.
action_
update
)
is
'boolean'
@
sfilter
.
setAction
Update
(
params
.
action_update
)
else
@
sfilter
.
setAction
Edit
(
params
.
action_edit
is
'true'
)
@
sfilter
.
setAction
Update
(
params
.
action_update
is
'true'
)
if
params
.
action_delete
if
(
typeof
params
.
action_delete
)
is
'boolean'
@
sfilter
.
setActionDelete
(
params
.
action_delete
)
...
...
@@ -140,7 +140,7 @@ class Streamer
$location
.
search
'match_policy'
:
$scope
.
filter
.
match_policy
'action_create'
:
$scope
.
filter
.
actions
.
create
'action_
edit'
:
$scope
.
filter
.
actions
.
edit
'action_
update'
:
$scope
.
filter
.
actions
.
update
'action_delete'
:
$scope
.
filter
.
actions
.
delete
'load_past'
:
$scope
.
filter
.
past_data
.
load_past
'go_back'
:
$scope
.
filter
.
past_data
.
go_back
...
...
h/js/streamfilter.coffee
View file @
9b0205d9
...
...
@@ -67,7 +67,7 @@ class StreamFilter
clauses
:
[]
actions
:
create
:
true
edit
:
true
update
:
true
delete
:
true
past_data
:
load_past
:
"none"
...
...
@@ -81,7 +81,7 @@ class StreamFilter
getClauses
:
->
return
@
filter
.
clauses
getActions
:
->
return
@
filter
.
actions
getActionCreate
:
->
return
@
filter
.
actions
.
create
getAction
Edit
:
->
return
@
filter
.
actions
.
edit
getAction
Update
:
->
return
@
filter
.
actions
.
update
getActionDelete
:
->
return
@
filter
.
actions
.
delete
setPastDataNone
:
->
...
...
@@ -129,8 +129,8 @@ class StreamFilter
@
filter
.
actions
.
create
=
action
this
setAction
Edit
:
(
action
)
->
@
filter
.
actions
.
edit
=
action
setAction
Update
:
(
action
)
->
@
filter
.
actions
.
update
=
action
this
setActionDelete
:
(
action
)
->
...
...
@@ -171,7 +171,7 @@ class StreamFilter
resetFilter
:
->
@
setMatchPolicyIncludeAny
()
@
setActionCreate
(
true
)
@
setAction
Edit
(
true
)
@
setAction
Update
(
true
)
@
setActionDelete
(
true
)
@
setPastDataNone
()
@
noClauses
()
...
...
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