| 1 |
// $Id: ajax_vote_up_down.js,v 1.6.2.5 2009/01/29 19:44:05 lut4rp Exp $ |
// $Id: ajax_vote_up_down.js,v 1.6.2.6 2009/08/06 08:47:00 ingo86 Exp $ |
| 2 |
|
|
| 3 |
/** |
/** |
| 4 |
* Pre-processing for the vote database object creation. |
* Pre-processing for the vote database object creation. |
| 40 |
var pid = 'vote_points_' + cid; |
var pid = 'vote_points_' + cid; |
| 41 |
// Update the voting arrows |
// Update the voting arrows |
| 42 |
$('#' + db.id + '.vote-' + db.dir1 + '-inact').removeClass('vote-' + db.dir1 + '-inact').addClass('vote-' + db.dir1 + '-act'); |
$('#' + db.id + '.vote-' + db.dir1 + '-inact').removeClass('vote-' + db.dir1 + '-inact').addClass('vote-' + db.dir1 + '-act'); |
| 43 |
if (!$('#' + 'vote_' + db.dir2 + '_' + cid).hasClass(db.dir2.'-inact')) { |
if (!$('#' + 'vote_' + db.dir2 + '_' + cid).hasClass(db.dir2 + '-inact')) { |
| 44 |
$('#' + 'vote_' + db.dir2 + '_' + cid).removeClass('vote-' + db.dir2 + '-act').addClass('vote-' + db.dir2 + '-inact'); |
$('#' + 'vote_' + db.dir2 + '_' + cid).removeClass('vote-' + db.dir2 + '-act').addClass('vote-' + db.dir2 + '-inact'); |
| 45 |
} |
} |
| 46 |
// Update the points |
// Update the points |