From feaa61d0f274f980f4403acf8609299ad68c20bd Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Sun, 6 Mar 2016 23:04:16 +0530 Subject: [PATCH 1/3] Muting Bootstrap Markdown Options which make markdown editor get stuck in a loop. Ticket Description Working Issue #811 --- app/views/admin/tickets/_form.html.haml | 2 +- vendor/assets/javascripts/bootstrap-markdown.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/admin/tickets/_form.html.haml b/app/views/admin/tickets/_form.html.haml index 7ff0821c..cefb7e30 100644 --- a/app/views/admin/tickets/_form.html.haml +++ b/app/views/admin/tickets/_form.html.haml @@ -10,7 +10,7 @@ .col-md-8 = semantic_form_for(@ticket, :url => (@ticket.new_record? ? admin_conference_tickets_path : admin_conference_ticket_path(@conference.short_title, @ticket))) do |f| = f.input :title - = f.input :description, input_html: { rows: 5, data: { provide: "markdown-editable" } } + = f.input :description, input_html: { rows: 5, data: { provide: "markdown" } } = f.input :price = f.input :price_currency, as: :select, class: 'form-control', collection: ['USD', 'EUR', 'GBP', 'INR', 'CNY'], include_blank: false %p.text-right diff --git a/vendor/assets/javascripts/bootstrap-markdown.js b/vendor/assets/javascripts/bootstrap-markdown.js index 2256df64..7e5be689 100644 --- a/vendor/assets/javascripts/bootstrap-markdown.js +++ b/vendor/assets/javascripts/bootstrap-markdown.js @@ -143,8 +143,9 @@ this.$textarea .on('focus', $.proxy(this.focus, this)) .on('keypress', $.proxy(this.keypress, this)) - .on('keyup', $.proxy(this.keyup, this)) - .on('change', $.proxy(this.change, this)) + /* options muted to repair markdown editable issue */ + //.on('keyup', $.proxy(this.keyup, this)) + //.on('change', $.proxy(this.change, this)) if (this.eventSupported('keydown')) { this.$textarea.on('keydown', $.proxy(this.keydown, this)) From db32854bb0b7c2cc87eaf16e809092ad66023f15 Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Mon, 7 Mar 2016 11:42:44 +0530 Subject: [PATCH 2/3] Making datatable responsive in admin's users view. --- app/views/admin/users/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml index 5f7b4d91..7752a41e 100644 --- a/app/views/admin/users/index.html.haml +++ b/app/views/admin/users/index.html.haml @@ -6,7 +6,7 @@ - if @users = "(#{@users.length})" .row - .col-md-12 + .col-md-12.table-responsive %table.table.table-striped.table-bordered.table-hover.datatable %thead %th ID From f3924f6aff8d85d16b5d40de37146e5afb3bfc67 Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Mon, 7 Mar 2016 14:02:54 +0530 Subject: [PATCH 3/3] Adding table-responsive in datatable in admin's users view --- app/views/admin/users/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml index 5f7b4d91..7752a41e 100644 --- a/app/views/admin/users/index.html.haml +++ b/app/views/admin/users/index.html.haml @@ -6,7 +6,7 @@ - if @users = "(#{@users.length})" .row - .col-md-12 + .col-md-12.table-responsive %table.table.table-striped.table-bordered.table-hover.datatable %thead %th ID