/[drupal]/contributions/modules/vote_up_down/ajax_vote_up_down.js
ViewVC logotype

Diff of /contributions/modules/vote_up_down/ajax_vote_up_down.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6.2.6, Thu Aug 6 08:47:00 2009 UTC revision 1.6.2.7, Wed Aug 26 19:28:01 2009 UTC
# Line 1  Line 1 
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.
# Line 40  Drupal.VDB = function (elt, uri) { Line 40  Drupal.VDB = function (elt, uri) {
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

Legend:
Removed from v.1.6.2.6  
changed lines
  Added in v.1.6.2.7

  ViewVC Help
Powered by ViewVC 1.1.2