Changeset - adf8ee7b8f2a
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2012-11-13 23:52:14
marcin@python-works.com
fire tooltips after loading the history
2 files changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/files/files.html
Show inline comments
 
@@ -98,13 +98,15 @@ var callbacks = function(State){
 
    //console.log(State);
 
    if(YUD.get('load_node_history')){
 
      //remove all listeners due to problems of history state
 
      YUE.removeListener('load_node_history', 'click');
 
      YUE.on('load_node_history', 'click', function(e){
 
          var _url = node_history_url.replace('__REV__',State.data.rev).replace('__FPATH__', State.data.f_path);
 
          ypjax(_url, 'node_history', function(o){})
 
          ypjax(_url, 'node_history', function(o){
 
        	  tooltip_activate();
 
          })
 
      });
 
    }
 
    // Inform Google Analytics of the change
 
    if ( typeof window.pageTracker !== 'undefined' ) {
 
        window.pageTracker._trackPageview(State.url);
 
    }
rhodecode/templates/files/files_source.html
Show inline comments
 
@@ -100,12 +100,14 @@ YUE.onDOMReady(function(){
 
    // select code link event
 
    YUE.on('hlcode', 'mouseup', getSelectionLink);
 

	
 
    //load history of file
 
    YUE.on('load_node_history', 'click', function(e){
 
        var _url = node_history_url.replace('__REV__','${c.file_changeset.raw_id}').replace('__FPATH__', '${c.f_path}');
 
        ypjax(_url, 'node_history', function(o){})
 
        ypjax(_url, 'node_history', function(o){
 
        	tooltip_activate();
 
        })
 
    });    
 

	
 
   });
 
   
 
</script>
0 comments (0 inline, 0 general)