Commits

Aljoša Mohorović committed bcbd40d

fixed new js code to use "path"

Comments (0)

Files changed (1)

_jitviewer/static/app.js

     "a[data-name] click": function(el, ev) {
         ev.preventDefault();
         var name = el.data('name');
+        var path = el.data('path');
         if(name) {
-            can.route.attr('name', name);
+            can.route.attr({'name': name, 'path': path});
+        }
+    },
+    ".operations a.inlined_call click": function(el, ev) {
+        ev.preventDefault();
+        var name = el.data('name');
+        var path = el.data('path');
+        if(name) {
+            can.route.attr({'name': name, 'path': path});
         }
     },
     ".operations a.bridgelink click": function(el, ev) {
         ev.preventDefault();
         var name = el.data('name');
+        var path = el.data('path');
         if(name) {
-            can.route.attr('name', name);
+            can.route.attr({'name': name, 'path': path});
         }
     },
     ".operations .single-operation a click": function(el, ev) {
         ev.preventDefault();
         var name = el.data('name');
+        var path = el.data('path');
         if(name) {
-            can.route.attr('name', name);
+            can.route.attr({'name': name, 'path': path});
         }
     },
     ".operations .single-operation span mouseenter": function(el, ev) {
         //console.log('route index');
     },
     'items/:name route': function(data) {
-        this.show_loop(data.name);
+        this.show_loop(data.name, data.path);
     },
     "#inp-bar focusin": function(el, ev){
         this.filter_active = true;
     "#loops .loopitem a click": function(el, ev){
         ev.preventDefault();
         var name = el.data('name');
-        can.route.attr('name', name);
-        //this.show_loop(name);
+        var path = el.data('path');
+        if(name) {
+            can.route.attr({'name': name, 'path': path});
+        }
     },
     "#callstack a click": function(el, ev){
         ev.preventDefault();
         var name = el.data('name');
-        can.route.attr('name', name);
-        //this.show_loop(name);
+        var path = el.data('path');
+        if(name) {
+            can.route.attr({'name': name, 'path': path});
+        }
     },
     check_selfreferencing: function(){
         var self = this;
         }
     },
     show_loop: function(name, path){
-        /*
-        if(this.current_line) {
-            $("#loop-" + this.current_line).removeClass("selected");
-        }
-        $("#loop-" + name).addClass("selected");
-        $("#title-text").html($("#loop-" + name).attr('name'));
-        $("#title").show();
-        glob_bridge_state.name = name;
-        if (path) {
-            glob_bridge_state.path = path;
-        } else {
-            delete glob_bridge_state.path;
-        }
-        */
         var self = this;
         var data = {
             'asm': this.state_asm,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.