BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
f79b2100
Commit
f79b2100
authored
Aug 08, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wiki popup for new page
parent
4e6f131c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
dispatcher.js.coffee
app/assets/javascripts/dispatcher.js.coffee
+3
-1
wikis.js.coffee
app/assets/javascripts/wikis.js.coffee
+0
-7
_nav.html.haml
app/views/projects/wikis/_nav.html.haml
+1
-1
No files found.
app/assets/javascripts/dispatcher.js.coffee
View file @
f79b2100
...
...
@@ -39,7 +39,9 @@ class Dispatcher
switch
path
.
first
()
when
'admin'
then
new
Admin
()
when
'wikis'
then
new
Wikis
()
when
'projects'
new
Wikis
()
if
path
[
1
]
==
'wikis'
initSearch
:
->
autocomplete_json
=
$
(
'.search-autocomplete-json'
).
data
(
'autocomplete-opts'
)
...
...
app/assets/javascripts/wikis.js.coffee
View file @
f79b2100
class
Wikis
constructor
:
->
modal
=
$
(
'#modal-new-wiki'
).
modal
({
modal
:
true
,
show
:
false
})
$
(
'.add-new-wiki'
).
bind
"click"
,
->
modal
.
show
()
$
(
'.build-new-wiki'
).
bind
"click"
,
->
field
=
$
(
'#new_wiki_path'
)
slug
=
field
.
val
()
...
...
@@ -13,7 +8,5 @@ class Wikis
if
(
slug
.
length
>
0
)
location
.
href
=
path
+
"/"
+
slug
$
(
'.modal-header .close'
).
bind
"click"
,
->
modal
.
hide
()
@
Wikis
=
Wikis
app/views/projects/wikis/_nav.html.haml
View file @
f79b2100
...
...
@@ -12,7 +12,7 @@
-
if
can?
(
current_user
,
:write_wiki
,
@project
)
.pull-right
=
link_to
'#
'
,
class:
"add-new-wiki btn btn-new
"
do
=
link_to
'#
modal-new-wiki'
,
class:
"add-new-wiki btn btn-new"
,
"data-toggle"
=>
"modal
"
do
%i
.icon-plus
New Page
...
...
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