ember-ui-pagination
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -34,3 +34,3 @@ import Ember from 'ember'; | ||
page: 0, | ||
perPage: 30, | ||
perPage: 25, | ||
modelName: '', | ||
@@ -100,4 +100,7 @@ isLoaded: false, | ||
loadMore: function (isOpposite) { | ||
var canLoadMore = this.get('canLoadMore'); | ||
if (canLoadMore && !isOpposite) { | ||
var canLoadMore = this.get('canLoadMore'), | ||
isLoadingMore = this.get('isLoadingMore'); | ||
if (!isLoadingMore && canLoadMore && !isOpposite) { | ||
this.set('isLoadingMore', true); | ||
this.incrementProperty('page'); | ||
@@ -132,2 +135,3 @@ } | ||
visibleContent.addObjects(loadedData); | ||
component.set('isLoadingMore', false); | ||
}); | ||
@@ -134,0 +138,0 @@ }), |
@@ -8,9 +8,11 @@ 'use strict'; | ||
// not specified (since that doesn't actually matter | ||
// to us | ||
}, | ||
afterInstall: function() { | ||
this.addBowerPackageToProject('jquery.inview'); | ||
this.addBowerPackageToProject('comma-separated-values'); | ||
var that = this; | ||
return this.addBowerPackageToProject('comma-separated-values').then(function() { | ||
return that.addBowerPackageToProject('jquery.inview.zuk'); | ||
}); | ||
} | ||
}; |
@@ -13,5 +13,6 @@ /* jshint node: true */ | ||
this.app.import(app.bowerDirectory + '/comma-separated-values/csv.js'); | ||
this.app.import(app.bowerDirectory + '/protonet/jquery.inview/jquery.inview.min.js'); | ||
this.app.import(app.bowerDirectory + '/jquery.inview.zuk/jquery.inview.min.js'); | ||
} | ||
}; | ||
{ | ||
"name": "ember-ui-pagination", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Ember UI pagination", | ||
@@ -5,0 +5,0 @@ "directories": { |
Sorry, the diff of this file is not supported yet
96781
321