From c41e6d708b6197306864220ab017aa5702e28df1 Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Tue, 17 Apr 2018 13:12:45 -0500
Subject: [PATCH] issue: Inherit Columns & Use Standard Columns

This addresses an issue where unchecking the box for 'Inherit columns from
the parent queue' does not hide the columns from the parent queue. Instead
it pushes them below the new, editable columns. This adds jQuery to toggle
the visibility of the parent columns.
---
 include/staff/templates/queue-columns.tmpl.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/staff/templates/queue-columns.tmpl.php b/include/staff/templates/queue-columns.tmpl.php
index 189ee1b3b..feaf7cd4e 100644
--- a/include/staff/templates/queue-columns.tmpl.php
+++ b/include/staff/templates/queue-columns.tmpl.php
@@ -106,6 +106,9 @@ $hidden_cols = $queue->inheritColumns() || $queue->useStandardColumns();
 </div>
 <script>
 +function() {
+$('[name=inherit-columns]').on('click', function() {
+    $('.standard-columns').toggle();
+});
 var Q = setInterval(function() {
   if ($('#append-column').length == 0)
     return;
-- 
GitLab