Anton Shestakov <av6@dwimlabs.net>, Thu, 24 Mar 2016 20:17:04 +0800
index: improve onPresence()
- default presence type is 'available', not 'online'
- return early on all standard types that aren't currently handled
- set default show and priority based on presence type
- use status message in log
- don't show status changes for contact type 'self'
js/validation.js
Permissions: -rw-r--r--
// Generated by CoffeeScript 1.10.0 setError: function($field, message) { $el = $('<div class="uk-text-danger"></div>').text(message); $field.addClass('uk-form-danger'); return $field.after($el); unsetError: function($field) { return $field.removeClass('uk-form-danger').siblings('.uk-text-danger').remove(); validateRequired: function(field, trim) { this.setError($field, 'This field is required.'); validatePasswords: function(field1, field2) { if ($field1.val() !== $field2.val()) { this.setError($field2, 'Passwords must match.'); //# sourceMappingURL=validation.js.map