Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix notification feed
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 27, 2014
1 parent a0b3256 commit a7e4b54
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Expand Up @@ -309,7 +309,7 @@ Class.create("NotificationLoader", {
"replaceScroller": false,
"columnsDef":[
{"attributeName":"ajxp_label", "messageId":1, "sortType":"String"},
{"attributeName":"event_time", "messageString":"Time", "sortType":"MyDate"},
{"attributeName":"event_time", "messageString":"Time", "sortType":"Number"},
{"attributeName":"event_type", "messageString":"Type", "sortType":"String"}],
"silentLoading":true,
"fixedSortColumn":"event_time",
Expand All @@ -319,7 +319,7 @@ Class.create("NotificationLoader", {
"connexion_discrete":true,
"format":"xml", "current_repository":"true",
"feed_type":"notif",
"limit":(node.isLeaf() || node.isRoot() ? 12 : 4),
"limit":(node.isLeaf() || node.isRoot() ? 18 : 4),
"path":(node.isLeaf() || node.isRoot()?node.getPath():node.getPath()+'/'),
"merge_description":"true",
"description_as_label":node.isLeaf()?"true":"false"
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/feed.sql/class.AJXP_SqlFeedStore.php
Expand Up @@ -110,7 +110,7 @@ public function loadEvents($filterByRepositories, $filterByPath, $userGroup, $of
if(!empty($filterByPath)){
$groupByClause = "";
if($filterByPath[strlen($filterByPath)-1]=='/'){
$groupByClause = " GROUP BY [index_path] ";
//$groupByClause = " GROUP BY [index_path] ";
}
$index_path = "ajxp.fs://".$filterByRepositories[0].$filterByPath."%";
$res = dibi::query("SELECT * FROM [ajxp_feed] WHERE [etype] = %s
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

Expand Up @@ -1428,7 +1428,7 @@ Class.create("FilesList", SelectableElements, {
}.bind(this));
if(col){
var index = this.columnsDef.indexOf(col);
this._sortableTable.sort(index, (this.options.fixedSortDirection=="asc"));
this._sortableTable.sort(index, (this.options.fixedSortDirection=="desc"));
this._sortableTable.updateHeaderArrows();
}
}else if(contextNode.getMetadata().get("filesList.sortColumn") && this.columnsDef[contextNode.getMetadata().get("filesList.sortColumn")]){
Expand Down

0 comments on commit a7e4b54

Please sign in to comment.