0

I am new in wicket i have modal window which have a property of draggable I want to remove the draggable from the window.

Thanks in advance

user243405
  • 83
  • 7

2 Answers2

0

It's not possible. For an alternative you might want to have a look at wiQuery (as stated here)

Community
  • 1
  • 1
Joachim Rohde
  • 5,915
  • 2
  • 29
  • 46
0

You could add a jQuery script to trigger a mouseup event when the user triggers a mousedown event on the draggable area. You have to add this in the head of the html for the modal windows:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org">
  <head>
    <script src="js/jquery-1.8.3.js"></script>
    <script type="text/javascript">
      $(function()
      {
        $(".w_caption").mousedown(function(){$(this).trigger("mouseup")});
      });
    </script>
  </head>
  <body>
  .................

Make sure you also reference jQuery in the head of the modal html. (tested with jquery-1.8.3)

papkass
  • 1,261
  • 2
  • 14
  • 20
  • Modal window is draggable on page I want that it has fix position not move or drag here and there any where ..... This Jquery is not working for me. – user243405 Dec 03 '13 at 10:33