Skip to content

Commit

Permalink
Release 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Fidelin committed Apr 24, 2017
1 parent c6d586a commit 2cc12b0
Show file tree
Hide file tree
Showing 12 changed files with 92 additions and 45 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Angular-xeditable changelog
=============================

Version 0.7.1 Apr 24, 2017

----------------------------
[bug #649] Update bsdate to work with no buttons and submit on blur (ckosloski)

Version 0.7.0 Mar 24, 2017

----------------------------
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-xeditable",
"version": "0.7.0",
"version": "0.7.1",
"description": "Edit in place for AngularJS",
"author": "https://github.com/vitalets",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions dist/css/xeditable.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 22 additions & 3 deletions dist/js/xeditable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
angular-xeditable - 0.7.0
angular-xeditable - 0.7.1
Edit-in-place for angular.js
Build date: 2017-03-24
Build date: 2017-04-24
*/
/**
* Angular-xeditable module
Expand Down Expand Up @@ -279,6 +279,25 @@ angular.module('xeditable').directive('editableBsdate', ['editableDirectiveFacto
this.inputEl.removeAttr('date-picker-append-to-body');
this.inputEl.removeAttr('name');
this.inputEl.attr('class','input-group');
},
autosubmit: function() {
var self = this;
self.inputEl.bind('change', function() {
setTimeout(function() {
self.scope.$apply(function() {
self.scope.$form.$submit();
});
}, 500);
});

self.inputEl.bind('keydown', function(e) {
//submit on tab
if (e.keyCode === 9 && self.editorEl.attr('blur') === 'submit') {
self.scope.$apply(function() {
self.scope.$form.$submit();
});
}
});
}
});
}]);
Expand Down Expand Up @@ -979,7 +998,7 @@ angular.module('xeditable').factory('editableController',
if (self.single) {
self.editorEl.attr('editable-form', '$form');
// transfer `blur` to form
self.editorEl.attr('blur', self.attrs.blur || (self.buttons === 'no' ? 'cancel' : editableOptions.blurElem));
self.editorEl.attr('blur', self.attrs.blur || editableOptions.blurElem);
}

//apply `postrender` method of theme
Expand Down
8 changes: 4 additions & 4 deletions dist/js/xeditable.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2cc12b0

Please sign in to comment.