Changeset - b9539c4df92f
[Not reviewed]
beta
0 3 0
Marcin Kuzminski - 14 years ago 2011-12-17 04:17:12
marcin@python-works.com
Translations fixes for Data table
3 files changed with 12 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/admin/repos/repos.html
Show inline comments
 
@@ -89,33 +89,36 @@
 
      {key:"owner",label:"${_('Owner')}",sortable:true},
 
      {key:"action",label:"${_('Action')}",sortable:false},
 
  ];
 

	
 
  var myDataSource = new YAHOO.util.DataSource(YUD.get("repos_list"));
 
  
 
  myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE;
 
  
 
  myDataSource.responseSchema = {
 
      fields: [
 
          {key:"menu"},
 
          {key:"name"},
 
          {key:"desc"},
 
          {key:"last_change"},
 
          {key:"tip"},
 
          {key:"owner"},
 
          {key:"action"},
 
      ]
 
  };
 

	
 
  var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,
 
          {
 
           sortedBy:{key:"name",dir:"asc"},
 
           MSG_SORTASC:"${_('Click to sort ascending')}",
 
           MSG_SORTDESC:"${_('Click to sort descending')}"
 
            MSG_SORTDESC:"${_('Click to sort descending')}",
 
            MSG_EMPTY:"${_('No records found.')}",
 
            MSG_ERROR:"${_('Data error.')}",
 
            MSG_LOADING:"${_('Loading...')}",                
 
          }
 
  );
 
  myDataTable.subscribe('postRenderEvent',function(oArgs) {
 
      tooltip_activate();
 
      quick_repo_menu();
 
  });          
 
</script>   
 
</%def>    
rhodecode/templates/index_base.html
Show inline comments
 
@@ -159,34 +159,37 @@
 
          {key:"atom",label:"",sortable:false},
 
      ];
 

	
 
      var myDataSource = new YAHOO.util.DataSource(YUD.get("repos_list"));
 
      
 
      myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE;
 
      
 
      myDataSource.responseSchema = {
 
          fields: [
 
              {key:"menu"},
 
              {key:"name"},
 
              {key:"desc"},
 
              {key:"last_change"},
 
              {key:"tip"},
 
              {key:"owner"},
 
              {key:"rss"},
 
              {key:"atom"},
 
          ]
 
      };
 

	
 
      var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,
 
              {
 
               sortedBy:{key:"name",dir:"asc"},
 
               MSG_SORTASC:"${_('Click to sort ascending')}",
 
               MSG_SORTDESC:"${_('Click to sort descending')}"
 
               MSG_SORTDESC:"${_('Click to sort descending')}",
 
               MSG_EMPTY:"${_('No records found.')}",
 
               MSG_ERROR:"${_('Data error.')}",
 
               MSG_LOADING:"${_('Loading...')}",                
 
              }
 
      );
 
      myDataTable.subscribe('postRenderEvent',function(oArgs) {
 
          tooltip_activate();
 
          quick_repo_menu();
 
          q_filter('q_filter',YUQ('div.table tr td a.repo_name'),func);        
 
      });          
 
      
 
    </script>
 
\ No newline at end of file
rhodecode/templates/journal/journal.html
Show inline comments
 
@@ -179,39 +179,42 @@
 
        {key:"tip",label:"${_('Tip')}",sortable:true,
 
            sortOptions: { sortFunction: revisionSort }},
 
        {key:"action1",label:"",sortable:false},
 
        {key:"action2",label:"",sortable:false},
 
    ];
 

	
 
    var myDataSource = new YAHOO.util.DataSource(YUD.get("repos_list"));
 
    
 
    myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE;
 
    
 
    myDataSource.responseSchema = {
 
        fields: [
 
            {key:"menu"},
 
            {key:"name"},
 
            {key:"tip"},
 
            {key:"action1"},
 
            {key:"action2"}
 
        ]
 
    };
 

	
 
    var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,
 
            {
 
             sortedBy:{key:"name",dir:"asc"},
 
             MSG_SORTASC:"${_('Click to sort ascending')}",
 
             MSG_SORTDESC:"${_('Click to sort descending')}"
 
              MSG_SORTDESC:"${_('Click to sort descending')}",
 
              MSG_EMPTY:"${_('No records found.')}",
 
              MSG_ERROR:"${_('Data error.')}",
 
              MSG_LOADING:"${_('Loading...')}",                
 
            }
 
    );
 
    myDataTable.subscribe('postRenderEvent',function(oArgs) {
 
        tooltip_activate();
 
        quick_repo_menu();
 
        var func = function(node){
 
            return node.parentNode.parentNode.parentNode.parentNode;
 
        }        
 
        q_filter('q_filter',YUQ('#my tr td a.repo_name'),func);
 
    });      
 
    
 
    
 
    </script>    
 
</%def>    
0 comments (0 inline, 0 general)