diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php index a6805da52e04bc2064ee48cf4589fd4265c5b98c..665f3a4bfa7f6e9ab781a288dd450fbff2a65e66 100644 --- a/include/staff/ticket-view.inc.php +++ b/include/staff/ticket-view.inc.php @@ -720,9 +720,9 @@ $tcount+= $ticket->getNumNotes(); }?> </select> <span class='error'>* <?php echo $errors['state']; ?></span> + </div> </td> </tr> - </div> </table> <p style="padding-left:165px;"> diff --git a/js/redactor-osticket.js b/js/redactor-osticket.js index 48d6a4597d354e967f9d8f5030662eae876db550..b181aeca42d4abda3793a0c671fe9d2d64519822 100644 --- a/js/redactor-osticket.js +++ b/js/redactor-osticket.js @@ -255,6 +255,13 @@ $(function() { el.redactor('set', '', false, false); }); } + $('input[type=submit]', el.closest('form')).on('click', function() { + // Some setups (IE v10 on Windows 7 at least) seem to have a bug + // where Redactor does not sync properly after adding an image. + // Therefore, the ::get() call will not include text added after + // the image was inserted. + el.redactor('sync'); + }); if (el.hasClass('draft')) { el.closest('form').append($('<input type="hidden" name="draft_id"/>')); options['plugins'].push('draft');