Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e5502790
Commit
e5502790
authored
Oct 17, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajax notes load
parent
add45eb8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
app/views/issues/show.js.haml
app/views/issues/show.js.haml
+2
-0
app/views/notes/_notes.html.haml
app/views/notes/_notes.html.haml
+9
-4
app/views/notes/_notes_list.html.haml
app/views/notes/_notes_list.html.haml
+4
-0
app/views/projects/wall.js.haml
app/views/projects/wall.js.haml
+2
-0
No files found.
app/views/issues/show.js.haml
0 → 100644
View file @
e5502790
:plain
$("#notes-list").html("
#{
escape_javascript
(
render
(
:partial
=>
'notes/notes_list'
))
}
");
app/views/notes/_notes.html.haml
View file @
e5502790
%ul
#notes-list
-
@notes
.
each
do
|
note
|
-
next
unless
note
.
author
=
render
:partial
=>
"notes/show"
,
:locals
=>
{
:note
=>
note
}
%ul
#notes-list
=
render
"notes/notes_list"
%br
%br
...
...
@@ -12,4 +9,12 @@
$
(
'
.delete-note
'
).
live
(
'
ajax:success
'
,
function
()
{
$
(
this
).
closest
(
'
li
'
).
fadeOut
();
});
-
if
[
"issues"
,
"projects"
].
include?
(
controller
.
controller_name
)
:javascript
$
(
function
(){
var
int
=
self
.
setInterval
(
"
updatePage()
"
,
20000
);
});
function
updatePage
(){
$
.
ajax
({
type
:
"
GET
"
,
url
:
location
.
href
,
dataType
:
"
script
"
});
}
app/views/notes/_notes_list.html.haml
0 → 100644
View file @
e5502790
-
@notes
.
each
do
|
note
|
-
next
unless
note
.
author
=
render
:partial
=>
"notes/show"
,
:locals
=>
{
:note
=>
note
}
app/views/projects/wall.js.haml
0 → 100644
View file @
e5502790
:plain
$("#notes-list").html("
#{
escape_javascript
(
render
(
:partial
=>
'notes/notes_list'
))
}
");
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