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
Tatuya Kamada
gitlab-ce
Commits
ec1bccb2
Commit
ec1bccb2
authored
Oct 11, 2012
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use 'js-' prefix for behavioral 'gfm-input' class
parent
46921e69
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
app/assets/javascripts/gfm_auto_complete.js.coffee
app/assets/javascripts/gfm_auto_complete.js.coffee
+4
-4
app/views/issues/_form.html.haml
app/views/issues/_form.html.haml
+2
-2
app/views/merge_requests/_form.html.haml
app/views/merge_requests/_form.html.haml
+4
-4
app/views/notes/_common_form.html.haml
app/views/notes/_common_form.html.haml
+1
-1
app/views/notes/_per_line_form.html.haml
app/views/notes/_per_line_form.html.haml
+1
-1
app/views/wikis/_form.html.haml
app/views/wikis/_form.html.haml
+1
-1
No files found.
app/assets/javascripts/gfm_auto_complete.js.coffee
View file @
ec1bccb2
...
@@ -22,14 +22,14 @@ window.setupGfmAutoComplete = ->
...
@@ -22,14 +22,14 @@ window.setupGfmAutoComplete = ->
###
###
Emoji
Emoji
###
###
$
(
'.gfm-input'
).
atWho
':'
,
$
(
'.
js-
gfm-input'
).
atWho
':'
,
data
:
autocompleteEmojiData
,
data
:
autocompleteEmojiData
,
tpl
:
autocompleteEmojiTemplate
tpl
:
autocompleteEmojiTemplate
###
###
Team Members
Team Members
###
###
$
(
'.gfm-input'
).
atWho
'@'
,
(
query
,
callback
)
->
$
(
'.
js-
gfm-input'
).
atWho
'@'
,
(
query
,
callback
)
->
(
getMoreMembers
=
->
(
getMoreMembers
=
->
$
.
getJSON
(
autocompleteMembersUrl
,
autocompleteMembersParams
)
$
.
getJSON
(
autocompleteMembersUrl
,
autocompleteMembersParams
)
.
success
(
members
)
->
.
success
(
members
)
->
...
@@ -45,7 +45,7 @@ window.setupGfmAutoComplete = ->
...
@@ -45,7 +45,7 @@ window.setupGfmAutoComplete = ->
# are we past the last page?
# are we past the last page?
if
newMembersData
.
length
==
0
if
newMembersData
.
length
==
0
# set static data and stop callbacks
# set static data and stop callbacks
$
(
'.gfm-input'
).
atWho
'@'
,
$
(
'.
js-
gfm-input'
).
atWho
'@'
,
data
:
autocompleteMembersData
data
:
autocompleteMembersData
callback
:
null
callback
:
null
else
else
...
@@ -54,4 +54,4 @@ window.setupGfmAutoComplete = ->
...
@@ -54,4 +54,4 @@ window.setupGfmAutoComplete = ->
# so the next request gets the next page
# so the next request gets the next page
autocompleteMembersParams
.
page
+=
1
;
autocompleteMembersParams
.
page
+=
1
;
).
call
();
).
call
();
\ No newline at end of file
app/views/issues/_form.html.haml
View file @
ec1bccb2
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
=
f
.
label
:title
do
=
f
.
label
:title
do
%strong
=
"Subject *"
%strong
=
"Subject *"
.input
.input
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"xxlarge gfm-input"
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"xxlarge
js-
gfm-input"
.issue_middle_block
.issue_middle_block
.issue_assignee
.issue_assignee
=
f
.
label
:assignee_id
do
=
f
.
label
:assignee_id
do
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
.clearfix
.clearfix
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
.input
.input
=
f
.
text_area
:description
,
maxlength:
2000
,
class:
"xxlarge gfm-input"
,
rows:
14
=
f
.
text_area
:description
,
maxlength:
2000
,
class:
"xxlarge
js-
gfm-input"
,
rows:
14
%p
.hint
Issues are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
%p
.hint
Issues are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
...
...
app/views/merge_requests/_form.html.haml
View file @
ec1bccb2
...
@@ -30,12 +30,12 @@
...
@@ -30,12 +30,12 @@
.clearfix
.clearfix
.main_box
.main_box
.top_box_content
.top_box_content
=
f
.
label
:title
do
=
f
.
label
:title
do
%strong
=
"Title *"
%strong
=
"Title *"
.input
=
f
.
text_field
:title
,
class:
"input-xxlarge pad gfm-input"
,
maxlength:
255
,
rows:
5
.input
=
f
.
text_field
:title
,
class:
"input-xxlarge pad
js-
gfm-input"
,
maxlength:
255
,
rows:
5
.middle_box_content
.middle_box_content
=
f
.
label
:assignee_id
do
=
f
.
label
:assignee_id
do
%i
.icon-user
%i
.icon-user
Assign to
Assign to
.input
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select user"
},
{
class:
'chosen span3'
})
.input
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select user"
},
{
class:
'chosen span3'
})
...
...
app/views/notes/_common_form.html.haml
View file @
ec1bccb2
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
=
f
.
hidden_field
:noteable_id
=
f
.
hidden_field
:noteable_id
=
f
.
hidden_field
:noteable_type
=
f
.
hidden_field
:noteable_type
=
f
.
text_area
:note
,
size:
255
,
class:
'note-text gfm-input'
=
f
.
text_area
:note
,
size:
255
,
class:
'note-text
js-
gfm-input'
#preview-note
.preview_note.hide
#preview-note
.preview_note.hide
.hint
.hint
.right
Comments are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
.right
Comments are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
...
...
app/views/notes/_per_line_form.html.haml
View file @
ec1bccb2
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
=
f
.
hidden_field
:noteable_id
=
f
.
hidden_field
:noteable_id
=
f
.
hidden_field
:noteable_type
=
f
.
hidden_field
:noteable_type
=
f
.
hidden_field
:line_code
=
f
.
hidden_field
:line_code
=
f
.
text_area
:note
,
size:
255
,
class:
'line-note-text gfm-input'
=
f
.
text_area
:note
,
size:
255
,
class:
'line-note-text
js-
gfm-input'
.note_actions
.note_actions
.buttons
.buttons
=
f
.
submit
'Add note'
,
class:
"btn save-btn submit_note submit_inline_note"
,
id:
"submit_note"
=
f
.
submit
'Add note'
,
class:
"btn save-btn submit_note submit_inline_note"
,
id:
"submit_note"
...
...
app/views/wikis/_form.html.haml
View file @
ec1bccb2
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
.bottom_box_content
.bottom_box_content
=
f
.
label
:content
=
f
.
label
:content
.input
=
f
.
text_area
:content
,
class:
'span8 gfm-input'
.input
=
f
.
text_area
:content
,
class:
'span8
js-
gfm-input'
.actions
.actions
=
f
.
submit
'Save'
,
class:
"save-btn btn"
=
f
.
submit
'Save'
,
class:
"save-btn btn"
=
link_to
"Cancel"
,
project_wiki_path
(
@project
,
:index
),
class:
"btn cancel-btn"
=
link_to
"Cancel"
,
project_wiki_path
(
@project
,
:index
),
class:
"btn cancel-btn"
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