summaryrefslogtreecommitdiff
path: root/modules/organize/js/organize_init.js
blob: 70949eab5f6f9c723897e5f34186728593d638c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$("document").ready(function() {
  $("#gOrganizeLink").click(function(event) {
    event.preventDefault();
    var href = event.target.href;

    $("body").append('<div id="gDialog"></div>');

    $("#gDialog").dialog({
      autoOpen: false,
      autoResize: false,
      modal: true,
      resizable: true,
      close: closeDialog
    });

    //showLoading("#gDialog");

    $.get(href, function(data) {
      $("#gDialog").html(data);
    });
    return false;
  });
});