1. Mark Lavin
  2. django-selectable

Commits

Mark Lavin  committed 4b5d256

Minor linting on plugin code.

  • Participants
  • Parent commits 118d055
  • Branches default

Comments (0)

Files changed (1)

File selectable/static/selectable/js/jquery.dj.selectable.js

View file
             ul.zIndex(this.element.zIndex() + 1);
             this._renderMenu(ul, items);
             // jQuery UI menu does not define deactivate
-            if (this.menu.deactivate) this.menu.deactivate();
+            if (this.menu.deactivate) {
+                this.menu.deactivate();
+            }
             this.menu.refresh();
             // size and position menu
             ul.show();
                 django.jQuery.fn.formset = function (opts) {
                     var options = $.extend({}, opts);
                     var addedevent = function (row) {
-                        bindSelectables($(row));
+                        window.bindSelectables($(row));
                     };
                     var added = null;
                     if (options.added) {
         }
         // Bind existing widgets on document ready
         if (typeof(djselectableAutoLoad) === "undefined" || djselectableAutoLoad) {
-            bindSelectables('body');
+            window.bindSelectables('body');
         }
     });
 })(jQuery);