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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
74a89d9e
Commit
74a89d9e
authored
Oct 17, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajax notes load
parent
8a8e77d5
Changes
4
Show 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 @
74a89d9e
:plain
$("#notes-list").html("
#{
escape_javascript
(
render
(
:partial
=>
'notes/notes_list'
))
}
");
app/views/notes/_notes.html.haml
View file @
74a89d9e
%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 @
74a89d9e
-
@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 @
74a89d9e
: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