fixed bug which did not increment abstract word count properly

This commit is contained in:
Sameer Deshmukh 2015-02-28 23:18:10 +05:30
parent cc66027220
commit 784a45a1fb

View file

@ -169,7 +169,7 @@ $("#event_event_type_id").change(function () {
$("#event_abstract").bind('keyup', function() { $("#event_abstract").bind('keyup', function() {
var $selected = $("#event_event_type_id option:selected") var $selected = $("#event_event_type_id option:selected")
var max = $selected.data("max-words"); var max = $selected.data("max-words");
word_count(this, 'abstract-count', max); word_count($('#event_abstract').get(0), 'abstract-count', max);
} ); } );
/* Set the defaults for DataTables initialisation */ /* Set the defaults for DataTables initialisation */