Skip to content

Commit

Permalink
fixed deleting thumbnails bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryame committed Dec 26, 2013
1 parent 4fd0576 commit 2e7ea1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/public/js/echowaves-cljs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35594,7 +35594,7 @@ echowaves.handle_response = function handle_response(response) {
var status_6530 = cljs.core.get.call(null, map__6522_6529__$1, new cljs.core.Keyword(null, "status", "status", 4416389988));
var name_6531 = cljs.core.get.call(null, map__6522_6529__$1, new cljs.core.Keyword(null, "name", "name", 1017277949));
if (cljs.core._EQ_.call(null, "ok", status_6530)) {
goog.dom.removeNode(domina.by_id.call(null, name_6531).parentNode.parentNode);
goog.dom.removeNode(domina.by_id.call(null, name_6531).parentNode);
} else {
errors.append([cljs.core.str("\x3cli\x3efailed to remove "), cljs.core.str(name_6531), cljs.core.str(": "), cljs.core.str(status_6530), cljs.core.str("\x3c/li\x3e")].join(""));
}
Expand Down Expand Up @@ -35628,7 +35628,7 @@ echowaves.handle_response = function handle_response(response) {
var status_6545 = cljs.core.get.call(null, map__6523_6544__$1, new cljs.core.Keyword(null, "status", "status", 4416389988));
var name_6546 = cljs.core.get.call(null, map__6523_6544__$1, new cljs.core.Keyword(null, "name", "name", 1017277949));
if (cljs.core._EQ_.call(null, "ok", status_6545)) {
goog.dom.removeNode(domina.by_id.call(null, name_6546).parentNode.parentNode);
goog.dom.removeNode(domina.by_id.call(null, name_6546).parentNode);
} else {
errors.append([cljs.core.str("\x3cli\x3efailed to remove "), cljs.core.str(name_6546), cljs.core.str(": "), cljs.core.str(status_6545), cljs.core.str("\x3c/li\x3e")].join(""));
}
Expand Down
1 change: 0 additions & 1 deletion src-cljs/echowaves.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
(doseq [{:keys [name status]} response]
(if (= "ok" status)
(-> (by-id name)
(.-parentNode)
(.-parentNode)
(dom/removeNode))
(.append errors (str "<li>failed to remove " name ": " status "</li>"))))
Expand Down

0 comments on commit 2e7ea1f

Please sign in to comment.