kai-jacobsen/kontentblocks

View on GitHub
js/src/shared/ModuleStatusBar/status/Settings/controls/LoggedInOnly.js

Summary

Maintainability
A
1 hr
Test Coverage
var tpl = require('templates/backend/status/settings/loggedInOnly.hbs');
var ControlView = require('./ControlView');
module.exports = ControlView.extend({
  render: function () {
    this.$el.append(tpl({model: this.model.toJSON(), i18n: KB.i18n}));
    return this.$el;
  },
  getOverrideValue: function (event) {
    return this.$('input').is(':checked');
  }
});