diff --git a/include/staff/dynamic-form.inc.php b/include/staff/dynamic-form.inc.php index 0bf1f10396e447bc698b744c7c9713cc13e0f052..ed2ec1e4cf53b9281ec75c12883c6f1ae5bf8a00 100644 --- a/include/staff/dynamic-form.inc.php +++ b/include/staff/dynamic-form.inc.php @@ -289,7 +289,7 @@ if ($form && count($langs) > 1) { ?> </p> <div style="display:none;" class="draggable dialog" id="delete-confirm"> - <h3><i class="icon-trash"></i> <?php echo __('Remove Existing Data?'); ?></h3> + <h3 class="drag-handle"><i class="icon-trash"></i> <?php echo __('Remove Existing Data?'); ?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p> diff --git a/include/staff/templates/advanced-search.tmpl.php b/include/staff/templates/advanced-search.tmpl.php index e9f275f027eb8093a9cf383db3b9b5a07aad354c..bb6153383b2f41063dc7084ce67ae281f4e5c1b7 100644 --- a/include/staff/templates/advanced-search.tmpl.php +++ b/include/staff/templates/advanced-search.tmpl.php @@ -2,7 +2,7 @@ $ff_uid = FormField::$uid; ?> <div id="advanced-search"> -<h3><?php echo __('Advanced Ticket Search');?></h3> +<h3 class="drag-handle"><?php echo __('Advanced Ticket Search');?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <form action="#tickets/search" method="post" name="search"> diff --git a/include/staff/templates/collaborators.tmpl.php b/include/staff/templates/collaborators.tmpl.php index d8d339c882dae25b1f5592f43a40c95420e76f66..cd17a3ca12f9051e5c7c1cc91187d059f0127ef2 100644 --- a/include/staff/templates/collaborators.tmpl.php +++ b/include/staff/templates/collaborators.tmpl.php @@ -1,4 +1,4 @@ -<h3><?php echo __('Ticket Collaborators'); ?></h3> +<h3 class="drag-handle"><?php echo __('Ticket Collaborators'); ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <?php if($info && $info['msg']) { diff --git a/include/staff/templates/content-manage.tmpl.php b/include/staff/templates/content-manage.tmpl.php index e90b8ff874719aad5e688dc446e9ebd2df506319..9009a4e45d157b292d25b9a233985e5b52c9aa7b 100644 --- a/include/staff/templates/content-manage.tmpl.php +++ b/include/staff/templates/content-manage.tmpl.php @@ -1,4 +1,4 @@ -<h3><?php echo __('Manage Content'); ?> — <?php echo Format::htmlchars($content->getName()); ?></h3> +<h3 class="drag-handle"><?php echo __('Manage Content'); ?> — <?php echo Format::htmlchars($content->getName()); ?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> diff --git a/include/staff/templates/dynamic-field-config.tmpl.php b/include/staff/templates/dynamic-field-config.tmpl.php index f2e66643197866939fdb95fe1147c7b66ee1bca5..780fe18dec545d8d3ca8d760bcf1d21f31f3ad4a 100644 --- a/include/staff/templates/dynamic-field-config.tmpl.php +++ b/include/staff/templates/dynamic-field-config.tmpl.php @@ -1,4 +1,4 @@ - <h3><?php echo __('Field Configuration'); ?> — <?php echo $field->get('label') ?></h3> + <h3 class="drag-handle"><?php echo __('Field Configuration'); ?> — <?php echo $field->get('label') ?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <form method="post" action="#form/field-config/<?php diff --git a/include/staff/templates/form-manage.tmpl.php b/include/staff/templates/form-manage.tmpl.php index e002ef1654dc3273938aed81383ac5fe2ad4be20..4ad941887886ed77102a1b868d828e1fd79c5796 100644 --- a/include/staff/templates/form-manage.tmpl.php +++ b/include/staff/templates/form-manage.tmpl.php @@ -1,4 +1,4 @@ -<h3><i class="icon-paste"></i> <?php echo __('Manage Forms'); ?></i></h3> +<h3 class="drag-handle"><i class="icon-paste"></i> <?php echo __('Manage Forms'); ?></i></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/><?php echo __( 'Sort the forms on this ticket by click and dragging on them. Use the box below the forms list to add new forms to the ticket.' diff --git a/include/staff/templates/list-import.tmpl.php b/include/staff/templates/list-import.tmpl.php index b3c38a99d66b83973de5459acc6285769e02f625..bf367c76ce58d10d762aea0631f0fa03d034c06f 100644 --- a/include/staff/templates/list-import.tmpl.php +++ b/include/staff/templates/list-import.tmpl.php @@ -1,4 +1,4 @@ -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php diff --git a/include/staff/templates/list-item-properties.tmpl.php b/include/staff/templates/list-item-properties.tmpl.php index 706c9484cb171e959788ce13a5c5cedb0624008e..61ef1b8f6ba3c0d25c3cfed5ceefd3040a1b8f18 100644 --- a/include/staff/templates/list-item-properties.tmpl.php +++ b/include/staff/templates/list-item-properties.tmpl.php @@ -1,4 +1,4 @@ -<h3><?php echo $list->getName(); ?> — <?php +<h3 class="drag-handle"><?php echo $list->getName(); ?> — <?php echo $item ? $item->getValue() : __('Add New List Item'); ?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> diff --git a/include/staff/templates/org-delete.tmpl.php b/include/staff/templates/org-delete.tmpl.php index 16e06c83b556e6bb2a034ba46d38c5c4834e3ec7..290d20e121932c75e3de195b957915e5bc378eac 100644 --- a/include/staff/templates/org-delete.tmpl.php +++ b/include/staff/templates/org-delete.tmpl.php @@ -6,7 +6,7 @@ if (!$info['title']) $info['warn'] = __('Deleted organization CANNOT be recovered'); ?> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php diff --git a/include/staff/templates/org-lookup.tmpl.php b/include/staff/templates/org-lookup.tmpl.php index 07620f2f60d374484a6b0720eb90142aa79e5b5f..377cf53470893526e4664732d2f273e0c2ae1bef 100644 --- a/include/staff/templates/org-lookup.tmpl.php +++ b/include/staff/templates/org-lookup.tmpl.php @@ -9,7 +9,7 @@ if ($info['search'] === false) ?> <div id="the-lookup-form"> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <div><p id="msg_info"><i class="icon-info-sign"></i> <?php echo $msg_info; ?></p></div> diff --git a/include/staff/templates/org-profile.tmpl.php b/include/staff/templates/org-profile.tmpl.php index 86db35c765b0a0c53b44b65ccebde551adfdc1e9..90420dab8b8909fac2d7a53d1ed0e28a31b85376 100644 --- a/include/staff/templates/org-profile.tmpl.php +++ b/include/staff/templates/org-profile.tmpl.php @@ -4,7 +4,7 @@ $info=($_POST && $errors)?Format::input($_POST):@Format::htmlchars($org->getInfo if (!$info['title']) $info['title'] = Format::htmlchars($org->getName()); ?> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php diff --git a/include/staff/templates/org.tmpl.php b/include/staff/templates/org.tmpl.php index 41fcec1ee8d99b60b51446b7ea83e1216e10e16d..4b8bc97fa31cd6a8585bc944efb0d770c92f7532 100644 --- a/include/staff/templates/org.tmpl.php +++ b/include/staff/templates/org.tmpl.php @@ -2,7 +2,7 @@ if (!$info['title']) $info['title'] = Format::htmlchars($org->getName()); ?> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php diff --git a/include/staff/templates/sequence-manage.tmpl.php b/include/staff/templates/sequence-manage.tmpl.php index 10ac7391ba63dba74a9f07ccb21fbe15e2dfba58..d349605eecf985f516438e075318ea5076b83f2b 100644 --- a/include/staff/templates/sequence-manage.tmpl.php +++ b/include/staff/templates/sequence-manage.tmpl.php @@ -1,4 +1,4 @@ -<h3><i class="icon-wrench"></i> <?php echo __('Manage Sequences'); ?></i></h3> +<h3 class="drag-handle"><i class="icon-wrench"></i> <?php echo __('Manage Sequences'); ?></i></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/><?php echo __( 'Sequences are used to generate sequential numbers. Various sequences can be diff --git a/include/staff/templates/task-assign.tmpl.php b/include/staff/templates/task-assign.tmpl.php index 7019fa49a2b1d12fdb03039921f0f65b7f9d367c..1c0feca3a503dd433867579484d9751dbe16f846 100644 --- a/include/staff/templates/task-assign.tmpl.php +++ b/include/staff/templates/task-assign.tmpl.php @@ -7,7 +7,7 @@ if (!$info[':title']) $info[':title'] = sprintf(__('%s Selected Tasks'), __('Assign')); ?> -<h3><?php echo $info[':title']; ?></h3> +<h3 class="drag-handle"><?php echo $info[':title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <div class="clear"></div> <hr/> diff --git a/include/staff/templates/task-delete.tmpl.php b/include/staff/templates/task-delete.tmpl.php index 9a9191e4cc5134849fee8d60a5b4e0aa5d82c21a..eea44e19cc1710543a5febab3fefb648e20cb3b3 100644 --- a/include/staff/templates/task-delete.tmpl.php +++ b/include/staff/templates/task-delete.tmpl.php @@ -5,7 +5,7 @@ if (!$info[':title']) __('Delete'), _N('selected task', 'selected tasks', $count)); ?> -<h3><?php echo $info[':title']; ?></h3> +<h3 class="drag-handle"><?php echo $info[':title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <div class="clear"></div> <hr/> diff --git a/include/staff/templates/task-edit.tmpl.php b/include/staff/templates/task-edit.tmpl.php index a77079e251be82ab85d584083a05a540fe2eb977..b90d545f823a2e812da24300225643d69c70ed55 100644 --- a/include/staff/templates/task-edit.tmpl.php +++ b/include/staff/templates/task-edit.tmpl.php @@ -10,7 +10,7 @@ $action = $info['action'] ?: ('#tasks/'.$task->getId().'/edit'); ?> <div id="task-form"> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php diff --git a/include/staff/templates/task-status.tmpl.php b/include/staff/templates/task-status.tmpl.php index b711e6f91c71f2e8b46a6d353ca5ef2e859d5e39..d741aaafce72089c65299c2e83efd605a85c9086 100644 --- a/include/staff/templates/task-status.tmpl.php +++ b/include/staff/templates/task-status.tmpl.php @@ -5,7 +5,7 @@ if (!$info[':title']) $info[':title'] = __('Change Tasks Status'); ?> -<h3><?php echo $info[':title']; ?></h3> +<h3 class="drag-handle"><?php echo $info[':title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <div class="clear"></div> <hr/> diff --git a/include/staff/templates/task-transfer.tmpl.php b/include/staff/templates/task-transfer.tmpl.php index a45311f7f991b4fba4e0522272401edde44c376b..b199be14fcfcf90118081d4f4bb09d6861624e10 100644 --- a/include/staff/templates/task-transfer.tmpl.php +++ b/include/staff/templates/task-transfer.tmpl.php @@ -7,7 +7,7 @@ if (!$info[':title']) $info[':title'] = sprintf(__('%s Selected Tasks'), __('Tranfer')); ?> -<h3><?php echo $info[':title']; ?></h3> +<h3 class="drag-handle"><?php echo $info[':title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <div class="clear"></div> <hr/> diff --git a/include/staff/templates/task.tmpl.php b/include/staff/templates/task.tmpl.php index d92da014f9f53e7367f67daecbfe3f41b517c45b..1271318ba3a5e48b7715ec5577987882e5fa1056 100644 --- a/include/staff/templates/task.tmpl.php +++ b/include/staff/templates/task.tmpl.php @@ -9,7 +9,7 @@ if ($ticket) ?> <div id="task-form"> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php diff --git a/include/staff/templates/thread-email-headers.tmpl.php b/include/staff/templates/thread-email-headers.tmpl.php index a84216ab46be6c4816a679ada4a1e77ff96e5216..631d43c2e225c09d0531e57fa589990dd134bb62 100644 --- a/include/staff/templates/thread-email-headers.tmpl.php +++ b/include/staff/templates/thread-email-headers.tmpl.php @@ -1,4 +1,4 @@ -<h3><?php echo __('Raw Email Headers'); ?></h3> +<h3 class="drag-handle"><?php echo __('Raw Email Headers'); ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> diff --git a/include/staff/templates/thread-entry-edit.tmpl.php b/include/staff/templates/thread-entry-edit.tmpl.php index e1ed1f81c9e062f8c0a45bc4a1bc6c925759681f..24e63230e1c8bf91730369ed35907c5096eabfeb 100644 --- a/include/staff/templates/thread-entry-edit.tmpl.php +++ b/include/staff/templates/thread-entry-edit.tmpl.php @@ -1,4 +1,4 @@ -<h3><?php echo __('Edit Thread Entry'); ?></h3> +<h3 class="drag-handle"><?php echo __('Edit Thread Entry'); ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> diff --git a/include/staff/templates/thread-entry-resend.tmpl.php b/include/staff/templates/thread-entry-resend.tmpl.php index 8a3e283c6418c0cdadd26b3db34a4fbc8c59f440..f5bc8eb9aa222b8a3569d357abf66bf9fcceb7f1 100644 --- a/include/staff/templates/thread-entry-resend.tmpl.php +++ b/include/staff/templates/thread-entry-resend.tmpl.php @@ -1,4 +1,4 @@ -<h3><?php echo __('Resend Entry'); ?></h3> +<h3 class="drag-handle"><?php echo __('Resend Entry'); ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> diff --git a/include/staff/templates/thread-entry-view.tmpl.php b/include/staff/templates/thread-entry-view.tmpl.php index 29f098ca1bf24e95618d070e39572c872b801f78..51a0a10da8bc411507c049337ee7cc2b92a86e5b 100644 --- a/include/staff/templates/thread-entry-view.tmpl.php +++ b/include/staff/templates/thread-entry-view.tmpl.php @@ -1,4 +1,4 @@ -<h3><?php echo __('Original Thread Entry'); ?></h3> +<h3 class="drag-handle"><?php echo __('Original Thread Entry'); ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> diff --git a/include/staff/templates/ticket-status.tmpl.php b/include/staff/templates/ticket-status.tmpl.php index eae1b3272e99c586e0abdf88e08bdf9995a6c83b..458c6010c5b543ee79dd601af16ae43fa154bfbb 100644 --- a/include/staff/templates/ticket-status.tmpl.php +++ b/include/staff/templates/ticket-status.tmpl.php @@ -5,7 +5,7 @@ if (!$info['title']) $info['title'] = 'Change Tickets Status'; ?> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <div class="clear"></div> <hr/> diff --git a/include/staff/templates/user-account.tmpl.php b/include/staff/templates/user-account.tmpl.php index f727eeab09edb7792b3737df39eb67602af685ad..ce1605f961cd27542a63df8589941f05469a8bd4 100644 --- a/include/staff/templates/user-account.tmpl.php +++ b/include/staff/templates/user-account.tmpl.php @@ -5,7 +5,7 @@ $access = (isset($info['_target']) && $info['_target'] == 'access'); if (!$info['title']) $info['title'] = Format::htmlchars($user->getName()); ?> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <div class="clear"></div> <hr/> diff --git a/include/staff/templates/user-delete.tmpl.php b/include/staff/templates/user-delete.tmpl.php index 35bb685be93e07e0ca69efded5f0fe6c3466ff43..3c8ab2a6516cb1a190c19b501a237892d7d3ed0f 100644 --- a/include/staff/templates/user-delete.tmpl.php +++ b/include/staff/templates/user-delete.tmpl.php @@ -6,7 +6,7 @@ if (!$info['title']) $info['warn'] = __('Deleted users and tickets CANNOT be recovered'); ?> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php diff --git a/include/staff/templates/user-import.tmpl.php b/include/staff/templates/user-import.tmpl.php index 413ed54e4bcbaeed35f4a2a234e4d78722b4a96d..a1c47340b131e4487dbcae4e21451c381175f84d 100644 --- a/include/staff/templates/user-import.tmpl.php +++ b/include/staff/templates/user-import.tmpl.php @@ -1,5 +1,5 @@ <div id="the-lookup-form"> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php diff --git a/include/staff/templates/user-lookup.tmpl.php b/include/staff/templates/user-lookup.tmpl.php index 90dac1ab97c18b19b2b2bb03f379090c4295810e..4a8e1c505bf782b04fec58c0b8a606958e10a6d2 100644 --- a/include/staff/templates/user-lookup.tmpl.php +++ b/include/staff/templates/user-lookup.tmpl.php @@ -1,5 +1,5 @@ <div id="the-lookup-form"> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php diff --git a/include/staff/templates/user-register.tmpl.php b/include/staff/templates/user-register.tmpl.php index 8282fe868af3317a8dbfa7488d81c8233e58b1c1..1fee0e6f30c21ec81bd4a0c84bf7e4748406fa68 100644 --- a/include/staff/templates/user-register.tmpl.php +++ b/include/staff/templates/user-register.tmpl.php @@ -9,7 +9,7 @@ if (!$_POST) { } ?> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <div class="clear"></div> <hr/> diff --git a/include/staff/templates/user.tmpl.php b/include/staff/templates/user.tmpl.php index 8c89749991d6bec12ebf2f901dacc57893ee324a..5add6b0824d389ff454ded25c57e9b83ce49717c 100644 --- a/include/staff/templates/user.tmpl.php +++ b/include/staff/templates/user.tmpl.php @@ -3,7 +3,7 @@ if (!isset($info['title'])) $info['title'] = Format::htmlchars($user->getName()); if ($info['title']) { ?> -<h3><?php echo $info['title']; ?></h3> +<h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr> <?php diff --git a/include/staff/templates/users.tmpl.php b/include/staff/templates/users.tmpl.php index c8a262022a0d036d6127720354c77902ca59861d..a91a586f988889877c41d34331dfe2f9f589e341 100644 --- a/include/staff/templates/users.tmpl.php +++ b/include/staff/templates/users.tmpl.php @@ -159,7 +159,7 @@ if ($res && $num) { //Show options.. } ?> <div style="display:none;" class="dialog" id="confirm-action"> - <h3><?php echo __('Please Confirm'); ?></h3> + <h3 class="drag-handle"><?php echo __('Please Confirm'); ?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="remove-users-confirm"> diff --git a/scp/css/scp.css b/scp/css/scp.css index 855dd8a03507f40107faebe69e157f1708b0e126..4dd7cef3afd1c4cf0b48512b451375e6146e447f 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -1565,7 +1565,7 @@ time { -webkit-box-sizing: content-box; } -.dialog.draggable h3:hover { +.dialog.draggable h3.drag-handle:hover { cursor: move; } diff --git a/scp/js/scp.js b/scp/js/scp.js index 8947e16f158e797e88d1e017987acf6b8e350045..496b724c6d3e0ca5e5b8a690974871bb9934ac42 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -317,14 +317,14 @@ var scp_prep = function() { top : (w.innerHeight() / 7), left : (w.width() - $this.outerWidth()) / 2 }); - $this.hasClass('draggable') && $this.draggable({handle:'h3'}); + $this.hasClass('draggable') && $this.draggable({handle:'.drag-handle'}); }); $('.dialog').each(function() { $this=$(this); $this.resize(); - $this.hasClass('draggable') && $this.draggable({handle:'h3'}); + $this.hasClass('draggable') && $this.draggable({handle:'.drag-handle'}); }); $('.dialog').delegate('input.close, a.close', 'click', function(e) {