|
|
@@ -38,7 +38,13 @@ app.controller('main', function($scope,$http,$sce) {
|
|
|
};
|
|
|
$scope.filter = function(page) {
|
|
|
var kw = $scope.selected_kw.map(function(e){return e.text});
|
|
|
- $http.post("/pymnts/articles/",{"mindate":$scope.mindate,"maxdate":$scope.maxdate,"site":$scope.site,"keyword":kw,"minweight":$scope.minweight,"page":page}).then(
|
|
|
+ $http.post("/pymnts/articles/",{"mindate":$scope.mindate,
|
|
|
+ "maxdate":$scope.maxdate,
|
|
|
+ "site":$scope.site,
|
|
|
+ "keyword":kw,
|
|
|
+ "minweight":$scope.minweight,
|
|
|
+ "title":$scope.title,
|
|
|
+ "page":page}).then(
|
|
|
function(data) {
|
|
|
if(page==undefined)
|
|
|
$scope.curPage=1;
|