Skip to content

Commit

Permalink
Merge pull request #107 from 223kazuki/fix/ie-job-reload
Browse files Browse the repository at this point in the history
Enable to refresh console after close job edit sub-window in IE.
  • Loading branch information
seki-seki authored Apr 10, 2017
2 parents 7ea554e + 90cb5ac commit f24fd4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cljs/job_streamer/console/components/job_detail.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
{:type "button"
:on-click (fn [e]
(let [w (js/window.open (str "/" app-name "/job/" name "/edit") name "width=1200,height=800")]
(.addEventListener w "unload" (fn [] (js/setTimeout (fn [] (put! refresh-job-ch true))) 10))))}
(js/setTimeout (fn [] (.addEventListener w "unload" (fn [] (js/setTimeout (fn [] (put! refresh-job-ch true))) 10))) 10)))}
"Edit"]]]]
[:div {:style {:height "200px"
:width "100%"
Expand Down
4 changes: 2 additions & 2 deletions src/cljs/job_streamer/console/components/jobs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
{:type "button"
:on-click (fn [e]
(let [w (js/window.open (str "/" app-name "/jobs/new") "New" "width=1200,height=800")]
(.addEventListener w "unload" (fn [] (js/setTimeout (fn [] (put! jobs-view-channel [:refresh-jobs true]))) 10))))}
(js/setTimeout (fn [] (.addEventListener w "unload" (fn [] (js/setTimeout (fn [] (put! jobs-view-channel [:refresh-jobs true]))) 10))) 10)))}
[:i.plus.icon] "Create the first job"]]]]]]]
[:div.ui.grid
[:div.ui.two.column.row
Expand All @@ -184,7 +184,7 @@
{:type "button"
:on-click (fn [e]
(let [w (js/window.open (str "/" app-name "/jobs/new") "New" "width=1200,height=800")]
(.addEventListener w "unload" (fn [] (js/setTimeout (fn [] (put! jobs-view-channel [:refresh-jobs true]))) 10))))}
(js/setTimeout (fn [] (.addEventListener w "unload" (fn [] (js/setTimeout (fn [] (put! jobs-view-channel [:refresh-jobs true]))) 10))) 10)))}
[:i.plus.icon] "New"]]
[:div.ui.right.aligned.column
[:button.ui.circular.basic.orange.icon.button
Expand Down

0 comments on commit f24fd4e

Please sign in to comment.