                                          {:title "Percent of things for a type that have a name"}
                                          {:title "Percent of things for a type that have a url"}]))
 
+  (enable-editable-table "#type_stats_table" input-queue)
   (enable-clickable-links-on "#type_stats_table" input-queue))
 
 (defn render-tag-stats-results [_ [_ _ _ new-value] input-queue]

                     :row-partial p/all-row
                     :caption (str "Total: " (count new-value))
                     :fields [:type :name :url :tags :created-at]))
  (enable-clickable-links-on "#all_table td:not([data-field=url])" input-queue))

(defn- enable-delete-thing

    (when (re-find #"\.\.\.$" (dom/text elem))
      (dom/set-text! elem (dom/attr elem "title")))))

(defn enable-editable-table [dom-id input-queue]
  (dom/set-attr! (css/sel (str domid " td.editable ")) "contentEditable" true)
  (dom/set-attr! (css/sel (str domid " td.editable a")) "contentEditable" false)

  (doseq [elem (.querySelectorAll js/document (str domid " td.editable"))]
    ;; didn't use events/send-on because it was overriding default keypress behavior
    (.addEventListener elem
                       "keypress"
