Skip to content

Commit

Permalink
[websockets] Do not attempt connection in location add page
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Dec 3, 2017
1 parent e005206 commit bb40d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_loci/static/django-loci/js/loci.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ django.jQuery(function ($) {
// this is triggered in the location form page
} else if (!$type.length) {
var pk = window.location.pathname.split('/').slice('-3', '-2')[0];
listenForLocationUpdates(pk);
if (pk != 'location') { listenForLocationUpdates(pk) }
}
// show existing indoor
if ($floorplan.val()) {
Expand Down

0 comments on commit bb40d6e

Please sign in to comment.