From d3dfd7f326f00523f142c193e2db5fbcb371b57b Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 31 Dec 2016 23:20:19 -0500 Subject: [PATCH] Change note color scheme, fix add note button --- admin/admin_ticket.php | 8 ++++---- css/mods-for-hesk-new.css | 4 ---- js/modsForHesk-javascript.js | 12 +++++++++++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index 7d2691d1..4f9ab4c6 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -1046,7 +1046,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); -
+

@@ -1153,7 +1153,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
 
- +
@@ -1163,8 +1163,8 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');

- diff --git a/css/mods-for-hesk-new.css b/css/mods-for-hesk-new.css index ce925958..72c974fa 100644 --- a/css/mods-for-hesk-new.css +++ b/css/mods-for-hesk-new.css @@ -219,10 +219,6 @@ button.dropdown-submit { border-top: 1px solid #f39c12; } -.box-warning .box-footer { - background: #f39c12; -} - #noteform { background: white; margin: 10px -10px -10px; diff --git a/js/modsForHesk-javascript.js b/js/modsForHesk-javascript.js index 80fab32b..199ad6bf 100644 --- a/js/modsForHesk-javascript.js +++ b/js/modsForHesk-javascript.js @@ -89,6 +89,16 @@ var loadJquery = function() $('.box-header h1.box-title').click(function() { $(this).parent().find('[data-widget="collapse"]').click(); }); + + $('[data-show]').click(function() { + var show = $(this).attr('data-show'); + $('#' + show).show(); + }); + + $('[data-hide]').click(function() { + var hide = $(this).attr('data-hide'); + $('#' + hide).hide(); + }) }; function calculateGrayCount(background) { @@ -102,7 +112,7 @@ function calculateGrayCount(background) { var setIcon = function(icon) { $('[data-toggle="iconpicker"]').iconpicker('setIcon', icon); -} +}; // Deprecated. Use data-select-all="id" instead function selectAll(id) {