Search for 'div-dropzone' correctly
This commit is contained in:
parent
63377c9ba5
commit
dae670bd69
|
|
@ -190,7 +190,7 @@ $(document).ready ->
|
|||
|
||||
$(".markdown-selector").click (e) ->
|
||||
e.preventDefault()
|
||||
$(@).closest(".note-write-holder").find(".div-dropzone").click()
|
||||
$(@).closest('.gfm-form').find('.div-dropzone').click()
|
||||
return
|
||||
|
||||
return
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
.alert.alert-info
|
||||
= "Please review the <strong>#{link_to "guidelines for contribution", contribution_guide_url}</strong> to this repository.".html_safe
|
||||
|
||||
= form_for [@project, @issue], html: { class: 'form-horizontal issue-form' } do |f|
|
||||
= form_for [@project, @issue], html: { class: 'form-horizontal issue-form gfm-form' } do |f|
|
||||
= render 'projects/issuable_form', f: f, issuable: @issue
|
||||
.form-group
|
||||
= f.label :label_ids, class: 'control-label' do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
= form_for [@project, @merge_request], html: { class: "merge-request-form form-horizontal" } do |f|
|
||||
= form_for [@project, @merge_request], html: { class: 'merge-request-form form-horizontal gfm-form' } do |f|
|
||||
.merge-request-form-info
|
||||
= render 'projects/issuable_form', f: f, issuable: @merge_request
|
||||
.form-group
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
%span.pull-right
|
||||
= link_to 'Change branches', new_project_merge_request_path(@project)
|
||||
|
||||
= form_for [@project, @merge_request], html: { class: "merge-request-form" } do |f|
|
||||
= form_for [@project, @merge_request], html: { class: "merge-request-form gfm-form" } do |f|
|
||||
.panel.panel-default
|
||||
|
||||
.panel-body
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
%hr
|
||||
|
||||
= form_for [@project, @milestone], html: {class: "new_milestone form-horizontal"} do |f|
|
||||
= form_for [@project, @milestone], html: {class: "new_milestone form-horizontal gfm-form"} do |f|
|
||||
-if @milestone.errors.any?
|
||||
.alert.alert-danger
|
||||
%ul
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
= form_for [@project, @note], remote: true, html: { :'data-type' => 'json', multipart: true, id: nil, class: "new_note js-new-note-form common-note-form" }, authenticity_token: true do |f|
|
||||
= form_for [@project, @note], remote: true, html: { :'data-type' => 'json', multipart: true, id: nil, class: "new_note js-new-note-form common-note-form gfm-form" }, authenticity_token: true do |f|
|
||||
= note_target_fields
|
||||
= f.hidden_field :commit_id
|
||||
= f.hidden_field :line_code
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
= form_for [@project, @page], method: @page.persisted? ? :put : :post, html: { class: 'form-horizontal' } do |f|
|
||||
= form_for [@project, @page], method: @page.persisted? ? :put : :post, html: { class: 'form-horizontal gfm-form' } do |f|
|
||||
-if @page.errors.any?
|
||||
#error_explanation
|
||||
.alert.alert-danger
|
||||
|
|
|
|||
Loading…
Reference in New Issue