From dbad8808a0a6f200af1f873fd572264576287dfc Mon Sep 17 00:00:00 2001 From: Sameer Deshmukh Date: Sat, 28 Feb 2015 23:44:52 +0530 Subject: [PATCH] fixes abstract count not showing properly --- app/assets/javascripts/osem.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/osem.js b/app/assets/javascripts/osem.js index 92a770b4..3f78f6a0 100644 --- a/app/assets/javascripts/osem.js +++ b/app/assets/javascripts/osem.js @@ -125,6 +125,13 @@ $(function () { }, 5) }); + + /* Count the proposal abstract length */ + $("#event_abstract").bind('keyup', function() { + var $selected = $("#event_event_type_id option:selected") + var max = $selected.data("max-words"); + word_count(this, 'abstract-count', max); + } ); }); function get_color() { @@ -165,13 +172,6 @@ $("#event_event_type_id").change(function () { }) .trigger('change'); -/* Count the proposal abstract length */ -$("#event_abstract").bind('keyup', function() { - var $selected = $("#event_event_type_id option:selected") - var max = $selected.data("max-words"); - word_count(this, 'abstract-count', max); -} ); - /* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",