Changeset - 0253b8e7d76c
[Not reviewed]
kallithea/templates/admin/admin_log.html
Show inline comments
 
@@ -36,13 +36,14 @@
 
    </tr>
 
    %endfor
 
</table>
 

	
 
<script type="text/javascript">
 
  $(document).ready(function(){
 
    $('#user_log').on('click','.pager_link',function(e){
 
    var $user_log = $('#user_log');
 
    $user_log.on('click','.pager_link',function(e){
 
      ypjax(e.target.href,"user_log",function(){
 
        show_more_event();
 
        tooltip_activate();
 
        show_changeset_tooltip();
 
      });
 
      e.preventDefault();
kallithea/templates/admin/settings/settings_system.html
Show inline comments
 
@@ -33,11 +33,12 @@
 
      %endfor
 
  </tbody>
 
</table>
 

	
 
<script>
 
    $('#check_for_update').click(function(e){
 
        $('#update_notice').show();
 
        var $update_notice = $('#update_notice');
 
        $update_notice.show();
 
        ypjax("${h.url('admin_settings_system_update')}",
 
              "update_notice");
 
    })
 
</script>
kallithea/templates/base/base.html
Show inline comments
 
@@ -205,15 +205,16 @@
 
          </a>
 
        </li>
 
      </ul>
 
  </div>
 
  <script type="text/javascript">
 
      YUE.on('branch_tag_switcher_2','mouseover',function(){
 
         var loaded = YUD.hasClass('branch_tag_switcher_2','loaded');
 
         var $branch_tag_switcher_2 = $('#branch_tag_switcher_2');
 
         var loaded = $branch_tag_switcher_2.hasClass('loaded');
 
         if(!loaded){
 
             YUD.addClass('branch_tag_switcher_2','loaded');
 
             $branch_tag_switcher_2.addClass('loaded');
 
             ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list_2');
 
         }
 
         return false;
 
      });
 
  </script>
 
  <!--- END CONTEXT BAR -->
kallithea/templates/changelog/changelog_summary_data.html
Show inline comments
 
@@ -67,13 +67,14 @@
 
%endfor
 

	
 
</table>
 

	
 
<script type="text/javascript">
 
  $(document).ready(function(){
 
    $('#shortlog_data').on('click','.pager_link',function(e){
 
    var $shortlog_data = $('#shortlog_data');
 
    $shortlog_data.on('click','.pager_link',function(e){
 
      ypjax(e.target.href,"shortlog_data",function(){tooltip_activate();});
 
      e.preventDefault();
 
    });
 
  });
 
</script>
 

	
kallithea/templates/files/files.html
Show inline comments
 
@@ -195,26 +195,24 @@ var callbacks = function(State){
 
        })
 
    })
 
}
 

	
 
$(document).ready(function(){
 
    ypjax_links();
 
    var container = 'files_data';
 
    var $files_data = $('#files_data');
 
    //Bind to StateChange Event
 
    History.Adapter.bind(window,'statechange',function(){
 
        var State = History.getState();
 
        cache_key = State.url;
 
        //check if we have this request in cache maybe ?
 
        var _cache_obj = CACHE[cache_key];
 
        var _cur_time = new Date().getTime();
 
        // get from cache if it's there and not yet expired !
 
        if(_cache_obj !== undefined && _cache_obj[0] > _cur_time){
 
            YUD.get(container).innerHTML=_cache_obj[1];
 
            YUD.setStyle(container,'opacity','1.0');
 

	
 
            $files_data.html(_cache_obj[1]);
 
            $files_data.css('opacity','1.0');
 
            //callbacks after ypjax call
 
            callbacks(State);
 
        }
 
        else{
 
            ypjax(State.url, container, function(){
 
                    callbacks(State);
kallithea/templates/followers/followers_data.html
Show inline comments
 
@@ -15,13 +15,14 @@
 
    </div>
 
% endfor
 

	
 
<div class="pagination-wh pagination-left">
 
<script type="text/javascript">
 
$(document).ready(function(){
 
    $('#followers').on('click','.pager_link',function(e){
 
    var $followers = $('#followers');
 
    $followers.on('click','.pager_link',function(e){
 
        ypjax(e.target.href,"followers",function(){
 
            show_more_event();
 
            tooltip_activate();
 
            show_changeset_tooltip();
 
        });
 
        e.preventDefault();
kallithea/templates/forks/forks_data.html
Show inline comments
 
@@ -23,13 +23,14 @@
 
            <div style="border-bottom: 1px solid #DDD;margin:10px 0px 10px 0px"></div>
 
        </div>
 
    % endfor
 
  <div class="pagination-wh pagination-left">
 
  <script type="text/javascript">
 
  $(document).ready(function(){
 
      $('#forks').on('click','.pager_link',function(e){
 
      var $forks = $('#forks');
 
      $forks.on('click','.pager_link',function(e){
 
          ypjax(e.target.href,"forks",function(){
 
              show_more_event();
 
              tooltip_activate();
 
              show_changeset_tooltip();
 
          });
 
          e.preventDefault();
kallithea/templates/journal/journal_data.html
Show inline comments
 
@@ -37,13 +37,14 @@
 

	
 
  <div class="pagination-wh pagination-left" style="padding: 0px 0px 0px 10px;">
 
  ${c.journal_pager.pager('$link_previous ~2~ $link_next')}
 
  </div>
 
    <script type="text/javascript">
 
    $(document).ready(function(){
 
        $('#journal').on('click','.pager_link',function(e){
 
        var $journal = $('#journal');
 
        $journal.on('click','.pager_link',function(e){
 
            ypjax(e.target.href,"journal",function(){
 
                show_more_event();
 
                tooltip_activate();
 
                show_changeset_tooltip();
 
            });
 
            e.preventDefault();
kallithea/templates/pullrequests/pullrequest_show_my.html
Show inline comments
 
@@ -28,17 +28,18 @@
 
<script type="text/javascript">
 
pyroutes.register('my_pullrequests_data', "${url('my_pullrequests_data')}", []);
 

	
 
var show_pullrequests = function(e){
 

	
 
    var url = pyroutes.url('my_pullrequests_data');
 
    if(YUD.get('show_closed') && YUD.get('show_closed').checked) {
 
    if ($('#show_closed').prop('checked')) {
 
        var url = pyroutes.url('my_pullrequests_data', {'pr_show_closed': '1'});
 
    }
 
    ypjax(url, 'pullrequests_container', function(){
 
        YUE.on('show_closed','change',function (e) {
 
        // new #show_closed has just been loaded
 
        $('#show_closed').change(function (e) {
 
            show_pullrequests(e);
 
        });
 
    });
 
}
 
show_pullrequests()
 

	
0 comments (0 inline, 0 general)