Esempio n. 1
0
        .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();
        });
Esempio n. 2
0
File: view.js Progetto: 89berner/app
TagForm.prototype.onsuccess = function(res) {
  tags.fetch();
  tags.ready(this.bound('onsave'));
}