Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
bump to version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tameraydin committed Sep 28, 2015
1 parent 9c00e07 commit de2dea5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/ng-inline-edit.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* ng-inline-edit v0.5.3 (http://tamerayd.in/ng-inline-edit)
* ng-inline-edit v0.6.0 (http://tamerayd.in/ng-inline-edit)
* Copyright 2015 Tamer Aydin (http://tamerayd.in)
* Licensed under MIT
*/
Expand Down
10 changes: 8 additions & 2 deletions dist/ng-inline-edit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* ng-inline-edit v0.5.3 (http://tamerayd.in/ng-inline-edit)
* ng-inline-edit v0.6.0 (http://tamerayd.in/ng-inline-edit)
* Copyright 2015 Tamer Aydin (http://tamerayd.in)
* Licensed under MIT
*/
Expand Down Expand Up @@ -119,6 +119,9 @@
if (!$scope.validating) {
switch (event.keyCode) {
case 13: // ENTER
if ($scope.isInputTextarea) {
return;
}
$scope.applyText(false, false);
break;
case 27: // ESC
Expand Down Expand Up @@ -162,6 +165,7 @@
},
link: function(scope, element, attrs) {
scope.model = scope.$parent.$eval(attrs.inlineEdit);
scope.isInputTextarea = attrs.hasOwnProperty('inlineEditTextarea');

var onBlurBehavior = attrs.hasOwnProperty('inlineEditOnBlur') ?
attrs.inlineEditOnBlur : InlineEditConfig.onBlur;
Expand All @@ -177,7 +181,9 @@
'\'ng-inline-edit--error\': validationError}">');

var input = angular.element(
'<input type="text" class="ng-inline-edit__input" ' +
(scope.isInputTextarea ?
'<textarea ' : '<input type="text" ') +
'class="ng-inline-edit__input" ' +
'ng-disabled="validating" ' +
'ng-show="editMode" ' +
'ng-keyup="onInputKeyup($event)" ' +
Expand Down
2 changes: 1 addition & 1 deletion dist/ng-inline-edit.min.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* ng-inline-edit v0.5.3 (http://tamerayd.in/ng-inline-edit)
* ng-inline-edit v0.6.0 (http://tamerayd.in/ng-inline-edit)
* Copyright 2015 Tamer Aydin (http://tamerayd.in)
* Licensed under MIT
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/ng-inline-edit.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ng-inline-edit",
"description": "Simple inline editing for HTML elements",
"version": "0.5.3",
"version": "0.6.0",
"main": "dist/ng-inline-edit.js",
"keywords": [
"angular",
Expand Down

0 comments on commit de2dea5

Please sign in to comment.