angular-editme
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -48,3 +48,3 @@ 'use strict'; | ||
transclude: true, | ||
template: '\n <div ng-click="toggleEdit(true)">\n <span ng-hide="isEditing" class="model-wrapper" ng-class="{\'hide-icon\': hideIcon}">\n <span class="model-content" ng-class="{\'edit-active\': showEditHint}">{{model}}</span>\n <sk-editme-icon ng-class="{\'edit-active\': showEditHint}" ng-if="!isEditing && !hideIcon"></sk-editme-icon>\n </span>\n <content ng-show="isEditing"></content>\n </div>\n ' | ||
template: '\n <div ng-click="toggleEdit(true)" ng-class="{\'editme-touch\': isTouchEnabled}">\n <span ng-hide="isEditing" class="model-wrapper" ng-class="{\'hide-icon\': hideIcon}">\n <span class="model-content" ng-class="{\'edit-active\': showEditHint}">{{model}}</span>\n <sk-editme-icon ng-class="{\'edit-active\': showEditHint}" ng-if="!isEditing && !hideIcon"></sk-editme-icon>\n </span>\n <content ng-show="isEditing"></content>\n </div>\n ' | ||
}; | ||
@@ -65,2 +65,6 @@ | ||
if ('ontouchstart' in document.documentElement) { | ||
scope.isTouchEnabled = true; | ||
} | ||
scope.showIcon = scope.showIcon || true; | ||
@@ -67,0 +71,0 @@ |
{ | ||
"name": "angular-editme", | ||
"version": "1.0.2", | ||
"description": "Convert your AngularJS <input> and <textarea> elements to be edited inline ala LinkedIn profiles.", | ||
"version": "1.0.3", | ||
"description": "Convert your AngularJS input and textarea elements to be edited inline ala LinkedIn profiles.", | ||
"homepage": "http://ryandrewjohnson.github.io/angular-editme/", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -5,2 +5,3 @@ # angular-editme | ||
 | ||
@@ -7,0 +8,0 @@ |
@@ -53,3 +53,3 @@ (function (root, factory) { | ||
template: ` | ||
<div ng-click="toggleEdit(true)"> | ||
<div ng-click="toggleEdit(true)" ng-class="{'editme-touch': isTouchEnabled}"> | ||
<span ng-hide="isEditing" class="model-wrapper" ng-class="{'hide-icon': hideIcon}"> | ||
@@ -77,2 +77,6 @@ <span class="model-content" ng-class="{'edit-active': showEditHint}">{{model}}</span> | ||
if ('ontouchstart' in document.documentElement) { | ||
scope.isTouchEnabled = true; | ||
} | ||
scope.showIcon = scope.showIcon || true; | ||
@@ -79,0 +83,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35329
515
166