зеркало из https://github.com/mozilla/pjs.git
Use new nsIXULSortService
This commit is contained in:
Родитель
e89b478bc7
Коммит
62b681879a
|
@ -58,6 +58,7 @@ function doSort(sortColName)
|
|||
else sortDirection = "ascending";
|
||||
}
|
||||
|
||||
/*
|
||||
// get RDF Core service
|
||||
var rdfCore = XPAppCoresManager.Find("RDFCore");
|
||||
if (!rdfCore)
|
||||
|
@ -71,5 +72,12 @@ function doSort(sortColName)
|
|||
}
|
||||
// sort!!!
|
||||
rdfCore.doSort(node, sortResource, sortDirection);
|
||||
*/
|
||||
var isupports = Components.classes["component://netscape/rdf/xul-sort-service"].getService();
|
||||
if (!isupports) return(false);
|
||||
var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService);
|
||||
if (!xulSortService) return(false);
|
||||
xulSortService.Sort(node, sortResource, sortDirection);
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@ function doSort(sortColName)
|
|||
else sortDirection = "ascending";
|
||||
}
|
||||
|
||||
/*
|
||||
// get RDF Core service
|
||||
var rdfCore = XPAppCoresManager.Find("RDFCore");
|
||||
if (!rdfCore)
|
||||
|
@ -71,5 +72,12 @@ function doSort(sortColName)
|
|||
}
|
||||
// sort!!!
|
||||
rdfCore.doSort(node, sortResource, sortDirection);
|
||||
*/
|
||||
var isupports = Components.classes["component://netscape/rdf/xul-sort-service"].getService();
|
||||
if (!isupports) return(false);
|
||||
var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService);
|
||||
if (!xulSortService) return(false);
|
||||
xulSortService.Sort(node, sortResource, sortDirection);
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче