Commit c78393ec authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove $.ready events

parent 8c918e58
......@@ -27,7 +27,6 @@
:javascript
$(function() {
var availableTags = #{@project.repository.ref_names.to_json};
$("#from, #to").autocomplete({
......@@ -36,4 +35,3 @@
});
disableButtonIfEmptyField('#to', '.commits-compare-btn');
});
:javascript
$(function() {
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_project_path(@project)}"
GitLab.GfmAutoComplete.Emoji.assetBase = '#{image_path("emoji")}'
GitLab.GfmAutoComplete.setup();
});
......@@ -62,7 +62,6 @@
Cancel
:javascript
$(function(){
disableButtonIfEmptyField("#merge_request_title", ".btn-save");
var source_branch = $("#merge_request_source_branch")
......@@ -78,4 +77,3 @@
target_branch.live("change", function() {
$.get("#{branch_to_project_merge_requests_path(@project)}", {ref: $(this).val() });
});
});
......@@ -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()));
});
......@@ -49,7 +49,5 @@
= paginate @blobs, theme: 'gitlab'
:javascript
$(function() {
$(".search_results .term").highlight("#{escape_javascript(params[:search])}");
})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment