1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 07:27:39 +02:00

Recompile JS

This commit is contained in:
Toby Zerner
2015-10-27 12:17:34 +10:30
parent c7da79a646
commit 7aa46e99cb

View File

@@ -68,12 +68,13 @@ System.register('flarum/suspend/main', ['flarum/extend', 'flarum/app', 'flarum/u
function SuspendUserModal() { function SuspendUserModal() {
babelHelpers.classCallCheck(this, SuspendUserModal); babelHelpers.classCallCheck(this, SuspendUserModal);
babelHelpers.get(Object.getPrototypeOf(SuspendUserModal.prototype), 'constructor', this).apply(this, arguments);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
} }
babelHelpers.get(Object.getPrototypeOf(SuspendUserModal.prototype), 'constructor', this).apply(this, args); babelHelpers.createClass(SuspendUserModal, [{
key: 'init',
value: function init() {
babelHelpers.get(Object.getPrototypeOf(SuspendUserModal.prototype), 'init', this).call(this);
var until = this.props.user.suspendUntil(); var until = this.props.user.suspendUntil();
var status = null; var status = null;
@@ -87,8 +88,7 @@ System.register('flarum/suspend/main', ['flarum/extend', 'flarum/app', 'flarum/u
this.status = m.prop(status); this.status = m.prop(status);
this.daysRemaining = m.prop(status === 'limited' && -moment().diff(until, 'days') + 1); this.daysRemaining = m.prop(status === 'limited' && -moment().diff(until, 'days') + 1);
} }
}, {
babelHelpers.createClass(SuspendUserModal, [{
key: 'className', key: 'className',
value: function className() { value: function className() {
return 'SuspendUserModal Modal--small'; return 'SuspendUserModal Modal--small';
@@ -146,6 +146,7 @@ System.register('flarum/suspend/main', ['flarum/extend', 'flarum/app', 'flarum/u
'div', 'div',
{ className: 'SuspendUserModal-days-input' }, { className: 'SuspendUserModal-days-input' },
m('input', { type: 'number', m('input', { type: 'number',
min: '0',
value: this.daysRemaining(), value: this.daysRemaining(),
oninput: m.withAttr('value', this.daysRemaining), oninput: m.withAttr('value', this.daysRemaining),
className: 'FormControl' }), className: 'FormControl' }),
@@ -191,10 +192,7 @@ System.register('flarum/suspend/main', ['flarum/extend', 'flarum/app', 'flarum/u
this.props.user.save({ suspendUntil: suspendUntil }).then(function () { this.props.user.save({ suspendUntil: suspendUntil }).then(function () {
return _this2.hide(); return _this2.hide();
}, function () { }, this.loaded.bind(this));
_this2.loading = false;
m.redraw();
});
} }
}]); }]);
return SuspendUserModal; return SuspendUserModal;