/* * @file * Javascript run on creation of a new map */ $('#map_name').val(''); $('#map_desc').val(''); $('#map_permission').val('commons'); <% if @forked %> $('#map_topicsToMap').val('0'); $('#map_synapsesToMap').val('0'); var form = $('#fork_map'); <% else %> var form = $('#new_map'); <% end %> var tempForm = form.html(); if (mapid == null) { form.html("Success! Do you want to
' + "'>Go to your new map?
or
Stay on this page?"); } else if (mapid != null) { form.html("Success! Do you want to
' + "'>Go to your new map?
or
Stay on this map?"); } function closeIt() { form.fadeOut('fast', function(){ form.html(tempForm); }); }