Blame | Letzte Änderung | Log anzeigen | RSS feed
var ComponentsBootstrapMaxlength = function () {var handleBootstrapMaxlength = function() {$('#maxlength_defaultconfig').maxlength({limitReachedClass: "label label-danger",})$('#maxlength_thresholdconfig').maxlength({limitReachedClass: "label label-danger",threshold: 20});$('#maxlength_alloptions').maxlength({alwaysShow: true,warningClass: "label label-success",limitReachedClass: "label label-danger",separator: ' out of ',preText: 'You typed ',postText: ' chars available.',validate: true});$('#maxlength_textarea').maxlength({limitReachedClass: "label label-danger",alwaysShow: true});$('#maxlength_placement').maxlength({limitReachedClass: "label label-danger",alwaysShow: true,placement: App.isRTL() ? 'top-right' : 'top-left'});}return {//main function to initiate the moduleinit: function () {handleBootstrapMaxlength();}};}();jQuery(document).ready(function() {ComponentsBootstrapMaxlength.init();});