~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/subject-media/project.js

  • Committer: Matt Giuca
  • Date: 2009-12-01 04:21:28 UTC
  • mfrom: (1164.1.1 new-file-ui)
  • Revision ID: matt.giuca@gmail.com-20091201042128-e221i1fwpbpegj4f
Added hover styles for the file browser listing (merge from new-file-ui branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
    $(".new_project").submit(add_project);
4
4
    $('li').show();
5
5
    $('.add-project-link').click(show_add);
6
 
    $('.add-projectset-link').click(show_add);
7
6
});
8
7
 
9
8
function serializeForm(form){
44
43
    function callback(xhr) {
45
44
        var response = JSON.parse(xhr.responseText);
46
45
        $('#projectset_list').append(response.html);
47
 
        var projectset_div = $('#projectset_' + response.projectset_id);
48
 
        projectset_div.hide();
49
 
        projectset_div.slideDown();
 
46
        $('#projectset_' + response.projectset_id).hide();
 
47
        $('#projectset_' + response.projectset_id).slideDown();
50
48
        $("#add_projectset").removeAttr('disabled');
51
 
        projectset_div.find(".new_project").submit(add_project);
52
 
        projectset_div.find(".add-project-link").click(show_add);
 
49
        $(".add-project-link").click(show_add);
53
50
    };
54
51
 
55
52
    var data = serializeForm($("#new_projectset_form"));