Javascript refactoring. History view now displays tags
[redakcja.git] / platforma / static / js / wiki / base.js
index 8c626d9..535749c 100644 (file)
        
        $.wiki.Perspective.prototype.onEnter = function () {
                // called when perspective in initialized
-               document.location.hash = '#' + this.perspective_id; 
+               if (this.perspective_id) {
+                       document.location.hash = '#' + this.perspective_id;
+               }
+                        
                console.log(document.location.hash);
        };