mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Fixed on-select for list items
This commit is contained in:
2
js/ext/angular/src/directive/ionicContent.js
vendored
2
js/ext/angular/src/directive/ionicContent.js
vendored
@@ -95,7 +95,7 @@ angular.module('ionic.ui.content', [])
|
||||
$timeout(function() {
|
||||
sv = new ionic.views.Scroll({
|
||||
el: $element[0],
|
||||
scrollEventInterval: parseInt($scope.scrollEventInterval, 10) || 40,
|
||||
scrollEventInterval: parseInt($scope.scrollEventInterval, 10) || 20,
|
||||
scrollingComplete: function() {
|
||||
$scope.onScrollComplete({
|
||||
scrollTop: this.__scrollTop,
|
||||
|
||||
4
js/ext/angular/src/directive/ionicList.js
vendored
4
js/ext/angular/src/directive/ionicList.js
vendored
@@ -20,7 +20,7 @@ angular.module('ionic.ui.list', ['ngAnimate'])
|
||||
type: '@',
|
||||
href: '@'
|
||||
},
|
||||
template: '<a href="{{href}}" class="item">\
|
||||
template: '<a href="{{href}}" ng-click="onSelect()" class="item">\
|
||||
<div class="item-edit" ng-if="canDelete && isEditing">\
|
||||
<button class="button button-icon icon" ng-class="deleteIcon" ng-click="onDelete()"></button>\
|
||||
</div>\
|
||||
@@ -99,7 +99,7 @@ angular.module('ionic.ui.list', ['ngAnimate'])
|
||||
buttons: '=',
|
||||
type: '@',
|
||||
},
|
||||
template: '<li class="item">\
|
||||
template: '<li ng-click="onSelect()" class="item">\
|
||||
<div class="item-edit" ng-if="canDelete && isEditing">\
|
||||
<button class="button button-icon icon" ng-class="deleteIcon" ng-click="onDelete()"></button>\
|
||||
</div>\
|
||||
|
||||
Reference in New Issue
Block a user