diff --git a/meteor/example/.meteor/packages b/meteor/example/.meteor/packages index 26940a1..a33b0ed 100644 --- a/meteor/example/.meteor/packages +++ b/meteor/example/.meteor/packages @@ -7,5 +7,6 @@ meteor-platform autopublish insecure rubaxa:sortable +dburles:mongo-collection-instances fezvrasta:bootstrap-material-design # twbs:bootstrap diff --git a/meteor/example/.meteor/versions b/meteor/example/.meteor/versions new file mode 100644 index 0000000..8bbfe6a --- /dev/null +++ b/meteor/example/.meteor/versions @@ -0,0 +1,56 @@ +application-configuration@1.0.3 +autopublish@1.0.1 +autoupdate@1.1.3 +base64@1.0.1 +binary-heap@1.0.1 +blaze-tools@1.0.1 +blaze@2.0.3 +boilerplate-generator@1.0.1 +callback-hook@1.0.1 +check@1.0.2 +ctl-helper@1.0.4 +ctl@1.0.2 +dburles:mongo-collection-instances@0.2.5 +ddp@1.0.12 +deps@1.0.5 +ejson@1.0.4 +fastclick@1.0.1 +fezvrasta:bootstrap-material-design@0.2.1 +follower-livedata@1.0.2 +geojson-utils@1.0.1 +html-tools@1.0.2 +htmljs@1.0.2 +http@1.0.8 +id-map@1.0.1 +insecure@1.0.1 +jquery@1.0.1 +json@1.0.1 +launch-screen@1.0.0 +livedata@1.0.11 +logging@1.0.5 +meteor-platform@1.2.0 +meteor@1.1.3 +minifiers@1.1.2 +minimongo@1.0.5 +mobile-status-bar@1.0.1 +mongo@1.0.9 +observe-sequence@1.0.3 +ordered-dict@1.0.1 +random@1.0.1 +reactive-dict@1.0.4 +reactive-var@1.0.3 +reload@1.1.1 +retry@1.0.1 +routepolicy@1.0.2 +rubaxa:sortable@0.7.3 +session@1.0.4 +spacebars-compiler@1.0.3 +spacebars@1.0.3 +templating@1.0.9 +tracker@1.0.3 +twbs:bootstrap@3.3.1 +ui@1.0.4 +underscore@1.0.1 +url@1.0.2 +webapp-hashing@1.0.1 +webapp@1.1.4 diff --git a/meteor/example/client/define-object-type.js b/meteor/example/client/define-object-type.js index 9060cbd..7850b14 100644 --- a/meteor/example/client/define-object-type.js +++ b/meteor/example/client/define-object-type.js @@ -58,7 +58,7 @@ Template.sortableItemTarget.events({ name.hide(); input.focus(); }, - 'blur input': function (event, template) { + 'blur input[type=text]': function (event, template) { // commit the change to the name var input = template.$('input'); input.hide(); @@ -66,6 +66,13 @@ Template.sortableItemTarget.events({ // TODO - what is the collection here? We'll hard-code for now. // https://github.com/meteor/meteor/issues/3303 Attributes.update(this._id, {$set: {name: input.val()}}); + }, + 'keydown input[type=text]': function(event) { + // ESC or ENTER + if (event.which === 27 || event.which === 13) { + event.preventDefault(); + event.target.blur(); + } } }); diff --git a/meteor/example/package.json b/meteor/example/package.json deleted file mode 120000 index 138a42c..0000000 --- a/meteor/example/package.json +++ /dev/null @@ -1 +0,0 @@ -../../package.json \ No newline at end of file