Browse Source

Merge pull request #178 from RubaXa/meteor-integration

Meteor integration
pull/179/head
Lebedev Konstantin 10 years ago
parent
commit
64fa384be6
  1. 1
      meteor/example/.meteor/packages
  2. 56
      meteor/example/.meteor/versions
  3. 9
      meteor/example/client/define-object-type.js
  4. 1
      meteor/example/package.json

1
meteor/example/.meteor/packages

@ -7,5 +7,6 @@ meteor-platform
autopublish
insecure
rubaxa:sortable
dburles:mongo-collection-instances
fezvrasta:bootstrap-material-design
# twbs:bootstrap

56
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

9
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();
}
}
});

1
meteor/example/package.json

@ -1 +0,0 @@
../../package.json
Loading…
Cancel
Save