You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
739 B
24 lines
739 B
$(document).ready(function () {
|
|
$('div.results a.action').on('click', function (e) {
|
|
e.preventDefault();
|
|
_this = $(this);
|
|
$.ajax({
|
|
url: _this.attr('href'),
|
|
type: 'post',
|
|
success: function (data) {
|
|
if (data.success==true) {
|
|
img = _this.siblings('img');
|
|
img.attr({
|
|
src: data.url,
|
|
alt: data.alt
|
|
});
|
|
img.next().attr('href', data.href).html(data.label).next().attr('href', data.href2).html(data.label2);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
$('div.results tbody th a').truncate({
|
|
max_length: 50,
|
|
});
|
|
});
|
|
|
|
|