]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4051 insert also needed to check for undefined priorities
authorCash Costello <cash.costello@gmail.com>
Fri, 4 Nov 2011 00:27:23 +0000 (20:27 -0400)
committerCash Costello <cash.costello@gmail.com>
Fri, 4 Nov 2011 00:27:23 +0000 (20:27 -0400)
js/classes/ElggPriorityList.js

index f7f91bb0fa7e4c995179dfed5a4ccb52e9b619e8..b4cec5044a1a2a0c2a765a25ac3117a31bea834b 100644 (file)
@@ -17,7 +17,7 @@ elgg.ElggPriorityList = function() {
  */
 elgg.ElggPriorityList.prototype.insert = function(obj, opt_priority) {
        var priority = 500;
-       if (arguments.length == 2) {
+       if (arguments.length == 2 && opt_priority != undefined) {
                priority = parseInt(opt_priority, 10);
        }