This commit is contained in:
Sameer Deshmukh 2015-04-20 15:23:30 +00:00
commit 04f38fdf50

View file

@ -129,6 +129,13 @@ $(function () {
}, },
5) 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() { function get_color() {
@ -169,13 +176,6 @@ $("#event_event_type_id").change(function () {
}) })
.trigger('change'); .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 */ /* Set the defaults for DataTables initialisation */
$.extend( true, $.fn.dataTable.defaults, { $.extend( true, $.fn.dataTable.defaults, {
"sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",