fixes abstract count not showing properly

This commit is contained in:
Sameer Deshmukh 2015-02-28 23:44:52 +05:30
parent cc66027220
commit dbad8808a0

View file

@ -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>>",