gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

grid plugin not load resizable.js and draggable.js #938

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have migrate from struts2-jquery version 3.3.3 to 3.5.1-SNAPSHOT and the grid 
plugin not load required js library now.

in FireBug I have:
(...).draggable is not a function 
(...).resizable is not a function 

In a previous version I have this:

jquery....3.3.js (line 62)
GET http://stil.taxi-burgas.com/struts/js/base/jquery.ui.resizable.js?s2j=3.3.3

jquery....3.3.js (line 62)
GET http://stil.taxi-burgas.com/struts/js/base/jquery.ui.draggable.js?s2j=3.3.3

Original issue reported on code.google.com by syt...@gmail.com on 11 Jan 2013 at 8:41

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 13 Jan 2013 at 10:26

GoogleCodeExporter commented 9 years ago
Include this script in JSP to fix this issue.

<script type="text/javascript">

    $(document).ready(function () {
        $.struts2_jquery.require([
            "jquery.ui.widget.js",
            "jquery.ui.mouse.js",
            "jquery.ui.position.js",
            "jquery.ui.draggable.js",
            "jquery.ui.resizable.js"
        ], null, "/struts/js/base/");
    });

</script>

Original comment by syt...@gmail.com on 31 Jan 2013 at 10:34