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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
35 deletions
+25
-35
app/views/compare/_form.html.haml
app/views/compare/_form.html.haml
+6
-8
app/views/layouts/_init_auto_complete.html.haml
app/views/layouts/_init_auto_complete.html.haml
+3
-5
app/views/merge_requests/_form.html.haml
app/views/merge_requests/_form.html.haml
+10
-12
app/views/milestones/_form.html.haml
app/views/milestones/_form.html.haml
+5
-7
app/views/search/_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