Sha256: 42bd3913b30000ca1bde7e1966fc710ba2f80c8fcabeb2317aef0c84798297ec
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
/* Copyright © 2012 The Pennsylvania State University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ //= require jquery.zclip.min /* polling functionality for the dashboard activity, can be turned on setInterval(function() { var last_event_container = $('#last-event'); var last_event = last_event_container.text(); $.ajax({ url: "/dashboard/activity?since=" + last_event, success: function(data) { var new_timestamp = null; // Update activity stream on dashboard $.each(data, function(index, value) { var event = value[0]; var when = value[1]; var timestamp = value[2]; $('#activity > tbody').prepend('<tr><td> </td><td>' + event + '</td><td>' + when + '</td></tr>'); new_timestamp = timestamp; }); if (new_timestamp !== null) { last_event_container.text(new_timestamp); }; }, dataType: "json"}); }, 5000); */
Version data entries
4 entries across 4 versions & 1 rubygems