![](http://habrastorage.org/getpro/habr/avatars/6ea/23f/ef5/6ea23fef5e0b28287fe6a836cdb896e9.jpg)
Solving the problem of the Simple Karma module for Drupal 5.x
![](https://habrastorage.org/getpro/habr/olpictures/210/0e2/27a/2100e227aac123d57927431526081440.png)
It seems that I managed to find a solution to this problem. Although its nature is still not clear to me (if someone knows what’s the matter, tell me).
Solution:
in the file simple_karma.js we find the line number 171:
$ ("#" + did + "span.karma_score"). Text (args.karma_aggregate);
in it the new meaning of “karma” is written into the element.
As I already said, the functional completely fulfills correctly, but the new value is not written to the output stream.
replace it with a line of the form:
$ ("#" + did + "span.karma_score"). text ("" + args.karma_aggregate);
And everything works as it should.