summaryrefslogtreecommitdiff
path: root/sublab_project/preview_admin/static/admin/js/preview.js
blob: c42ef1c69bcfa88a0a3eaddb72d472b53b3ab3be (plain)
1
2
3
4
5
6
7
8
9
10
11
function preview_admin(field, preview_url) {
	$.ajax({
		type: 'GET',
		url: preview_url,
		data: { data: $('#id_' + field).val() },
		success: function (data, textStatus, jhr) {
			$('#preview-' + field).html(data).show('fast');
		}
	});
}