
var _ = require('underscore'),
    History = require('react-router').History,
    Markdown = require('react-markdown'),
    Panel = require('react-bootstrap').Panel,
    Pick = require('object.pick'),
    React = require('react/addons'),
    Router = require('react-router').Router,
    Uuid = require('uuid4');

var actions = require('../../actions'),
    formats = require('./formats.js'),
    Griddy = require('../griddy');

module.exports = React.createClass({
  mixins: [History],
  render: function() {
    var self = this;

    return (
      <Griddy
        data={this.props.entries}
        order={["name", "ctime", "mtime"]}
        onEntryDelete={function(entry) {
          for (var i = 0; i < self.props.entries.length; ++i) {
            if (self.props.entries[i].id == entry.id) {
              actions.set(_.without(self.props.entries, self.props.entries[i]));
              actions.save();
              break;
            }
          }
        }}
        onEntryView={function(entry) {
          self.history.pushState(null, "/entries/" + entry.id);
        }}
        buttons={{
          add: false,
          edit: false,
          delete: true
        }}
        columnMetadata={
          {
            "ctime": {
              "header": "Created",
              "transformation": formats.DateTimeTransformation
            },
            "mtime": {
              "header": "Updated",
              "transformation": formats.DateTimeTransformation
            },
            "name": {
              "header": "Name",
              "transformation": formats.MarkdownTransformation
            }
          }
        }></Griddy>
    );
  }
});

@@ -662,32 +662,76 @@
 nction(entry) %7B%0A
+          var entries = self.props.entries;%0A
           for (v
@@ -852,41 +852,28 @@
     
-actions.set(_.without(self.props.
+entries = _.without(
 entr
@@ -899,17 +899,16 @@
 ries%5Bi%5D)
-)
 ;%0A      
@@ -917,72 +917,119 @@
     
-  actions.save();%0A              break;%0A            %7D%0A          %7D
+%7D%0A          %7D%0A          self.props.entries = entries;%0A          actions.set(entries);%0A          actions.save();
 %0A   

Fix delete many