Sha256: ff464c76f284fa580153b347247c15b1a97d601c529960659cdf9de50d08ba98
Contents?: true
Size: 1.35 KB
Versions: 28
Compression:
Stored size: 1.35 KB
Contents
var MiniProfiler = MiniProfiler || {}; MiniProfiler.list = { init: function (options) { var opt = options || {}; var updateGrid = function (id) { jQueryMP.ajax({ url: options.path + 'results-list', data: { "last-id": id }, dataType: 'json', type: 'GET', success: function (data) { jQueryMP('table tbody').append(jQueryMP("#rowTemplate").tmpl(data)); var oldId = id; var oldData = data; setTimeout(function () { var newId = oldId; if (oldData.length > 0) { newId = oldData[oldData.length - 1].Id; } updateGrid(newId); }, 4000); } }); } MiniProfiler.path = options.path; jQueryMP.get(options.path + 'list.tmpl?v=' + options.version, function (data) { if (data) { jQueryMP('body').append(data); jQueryMP('body').append(jQueryMP('#tableTemplate').tmpl()); updateGrid(); } }); } };
Version data entries
28 entries across 26 versions & 2 rubygems