.end(function (err, res) { if (err) { return new Panel({ classes: 'panel-danger', heading: t('panel.heading.error'), body: t('panel.heading.body'), el: self.find('.panels') }); } var panel = new Panel({ classes: 'panel-success', heading: t('panel.heading.success'), body: t('admin.tags.save.success'), el: self.find('.panels') }); tags.fetch(); });
TagForm.prototype.onsuccess = function(res) { tags.fetch(); tags.ready(this.bound('onsave')); }