remove menu popover
This commit is contained in:
parent
58247503a5
commit
12a6907af6
9 changed files with 127 additions and 69 deletions
25
src/js/directives/sendMax.js
Normal file
25
src/js/directives/sendMax.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.directives')
|
||||
.directive('sendMax', function($timeout) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'views/includes/sendMax.html',
|
||||
transclude: true,
|
||||
scope: {
|
||||
show: '=sendMaxShow',
|
||||
onSelect: '=sendMaxOnSelect'
|
||||
},
|
||||
link: function(scope, element, attrs) {
|
||||
scope.hide = function() {
|
||||
scope.show = false;
|
||||
};
|
||||
scope.sendMax = function() {
|
||||
$timeout(function() {
|
||||
scope.hide();
|
||||
}, 100);
|
||||
scope.onSelect();
|
||||
};
|
||||
}
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue