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
c78393ec
Commit
c78393ec
authored
Jun 21, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove $.ready events
parent
8c918e58
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
35 deletions
+25
-35
_form.html.haml
app/views/compare/_form.html.haml
+6
-8
_init_auto_complete.html.haml
app/views/layouts/_init_auto_complete.html.haml
+3
-5
_form.html.haml
app/views/merge_requests/_form.html.haml
+10
-12
_form.html.haml
app/views/milestones/_form.html.haml
+5
-7
_result.html.haml
app/views/search/_result.html.haml
+1
-3
No files found.
app/views/compare/_form.html.haml
View file @
c78393ec
...
...
@@ -27,13 +27,11 @@
:javascript
$
(
function
()
{
var
availableTags
=
#{
@project
.
repository
.
ref_names
.
to_json
}
;
var
availableTags
=
#{
@project
.
repository
.
ref_names
.
to_json
}
;
$
(
"#from, #to"
).
autocomplete
({
source
:
availableTags
,
minLength
:
1
});
disableButtonIfEmptyField
(
'#to'
,
'.commits-compare-btn'
);
$
(
"#from, #to"
).
autocomplete
({
source
:
availableTags
,
minLength
:
1
});
disableButtonIfEmptyField
(
'#to'
,
'.commits-compare-btn'
);
app/views/layouts/_init_auto_complete.html.haml
View file @
c78393ec
:javascript
$
(
function
()
{
GitLab
.
GfmAutoComplete
.
dataSource
=
"
#{
autocomplete_sources_project_path
(
@project
)
}
"
GitLab
.
GfmAutoComplete
.
Emoji
.
assetBase
=
'
#{
image_path
(
"emoji"
)
}
'
GitLab
.
GfmAutoComplete
.
setup
();
});
GitLab
.
GfmAutoComplete
.
dataSource
=
"
#{
autocomplete_sources_project_path
(
@project
)
}
"
GitLab
.
GfmAutoComplete
.
Emoji
.
assetBase
=
'
#{
image_path
(
"emoji"
)
}
'
GitLab
.
GfmAutoComplete
.
setup
();
app/views/merge_requests/_form.html.haml
View file @
c78393ec
...
...
@@ -62,20 +62,18 @@
Cancel
:javascript
$
(
function
(){
disableButtonIfEmptyField
(
"#merge_request_title"
,
".btn-save"
);
disableButtonIfEmptyField
(
"#merge_request_title"
,
".btn-save"
);
var
source_branch
=
$
(
"#merge_request_source_branch"
)
,
target_branch
=
$
(
"#merge_request_target_branch"
);
var
source_branch
=
$
(
"#merge_request_source_branch"
)
,
target_branch
=
$
(
"#merge_request_target_branch"
);
$
.
get
(
"
#{
branch_from_project_merge_requests_path
(
@project
)
}
"
,
{
ref
:
source_branch
.
val
()
});
$
.
get
(
"
#{
branch_to_project_merge_requests_path
(
@project
)
}
"
,
{
ref
:
target_branch
.
val
()
});
$
.
get
(
"
#{
branch_from_project_merge_requests_path
(
@project
)
}
"
,
{
ref
:
source_branch
.
val
()
});
$
.
get
(
"
#{
branch_to_project_merge_requests_path
(
@project
)
}
"
,
{
ref
:
target_branch
.
val
()
});
source_branch
.
live
(
"change"
,
function
()
{
$
.
get
(
"
#{
branch_from_project_merge_requests_path
(
@project
)
}
"
,
{
ref
:
$
(
this
).
val
()
});
});
source_branch
.
live
(
"change"
,
function
()
{
$
.
get
(
"
#{
branch_from_project_merge_requests_path
(
@project
)
}
"
,
{
ref
:
$
(
this
).
val
()
});
});
target_branch
.
live
(
"change"
,
function
()
{
$
.
get
(
"
#{
branch_to_project_merge_requests_path
(
@project
)
}
"
,
{
ref
:
$
(
this
).
val
()
});
});
target_branch
.
live
(
"change"
,
function
()
{
$
.
get
(
"
#{
branch_to_project_merge_requests_path
(
@project
)
}
"
,
{
ref
:
$
(
this
).
val
()
});
});
app/views/milestones/_form.html.haml
View file @
c78393ec
...
...
@@ -40,10 +40,8 @@
:javascript
$
(
function
()
{
disableButtonIfEmptyField
(
"#milestone_title"
,
".btn-save"
);
$
(
".datepicker"
).
datepicker
({
dateFormat
:
"yy-mm-dd"
,
onSelect
:
function
(
dateText
,
inst
)
{
$
(
"#milestone_due_date"
).
val
(
dateText
)
}
}).
datepicker
(
"setDate"
,
$
.
datepicker
.
parseDate
(
'yy-mm-dd'
,
$
(
'#milestone_due_date'
).
val
()));
});
disableButtonIfEmptyField
(
"#milestone_title"
,
".btn-save"
);
$
(
".datepicker"
).
datepicker
({
dateFormat
:
"yy-mm-dd"
,
onSelect
:
function
(
dateText
,
inst
)
{
$
(
"#milestone_due_date"
).
val
(
dateText
)
}
}).
datepicker
(
"setDate"
,
$
.
datepicker
.
parseDate
(
'yy-mm-dd'
,
$
(
'#milestone_due_date'
).
val
()));
app/views/search/_result.html.haml
View file @
c78393ec
...
...
@@ -49,7 +49,5 @@
=
paginate
@blobs
,
theme:
'gitlab'
:javascript
$
(
function
()
{
$
(
".search_results .term"
).
highlight
(
"
#{
escape_javascript
(
params
[
:search
])
}
"
);
})
$
(
".search_results .term"
).
highlight
(
"
#{
escape_javascript
(
params
[
:search
])
}
"
);
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