app/views/foreman_tasks/tasks/index.html.erb in foreman-tasks-0.7.1 vs app/views/foreman_tasks/tasks/index.html.erb in foreman-tasks-0.7.2
- old
+ new
@@ -12,14 +12,17 @@
word-break: normal;
}
</style>
<script>
+
+var currentTwoPaneTask;
+
$(document).on('click', ".table-two-pane td.two-pane-link", function(e) {
- var item = $(this).find("a");
- if(item.length){
+ currentTwoPaneTask = $(this).find("a");
+ if(currentTwoPaneTask.length){
e.preventDefault();
- two_pane_open(item);
+ two_pane_open(currentTwoPaneTask);
}
});
</script>
<table class="table table-bordered table-striped table-two-pane">