rank.js 452 B

1234567891011121314151617181920212223242526
  1. (function (Misago) {
  2. 'use strict';
  3. var Rank = function(data) {
  4. this.id = data.id;
  5. this.name = data.name;
  6. this.slug = data.slug;
  7. this.description = data.description;
  8. this.title = data.title;
  9. this.css_class = data.css_class;
  10. this.is_tab = data.is_tab;
  11. };
  12. Misago.addService('model:rank', function(_) {
  13. _.models.add('rank', {
  14. class: Rank
  15. });
  16. },
  17. {
  18. after: 'models'
  19. });
  20. } (Misago.prototype));