Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
aldeed committed Dec 29, 2014
1 parent 5c456b6 commit e35c0be
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// "double" : require double quotes
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused" : true, // true: Require all defined variables be used
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
"strict" : false, // true: Requires all functions run in ES5 Strict Mode
"trailing" : true, // true: Prohibit trailing whitespaces
"maxparams" : false, // {int} Max number of formal params allowed per function
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
Expand All @@ -51,7 +51,7 @@
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs
"funcscope" : false, // true: Tolerate defining variables inside control statements"
"globalstrict" : true, // true: Allow global "use strict" (also enables 'strict')
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
"iterator" : false, // true: Tolerate using the `__iterator__` property
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
Expand Down
33 changes: 33 additions & 0 deletions .versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
aldeed:autoform@4.2.2
aldeed:autoform-select2@1.0.3
aldeed:simple-schema@1.1.0
base64@1.0.2
blaze@2.0.4
blaze-tools@1.0.2
callback-hook@1.0.2
check@1.0.3
ddp@1.0.13
deps@1.0.6
ejson@1.0.5
geojson-utils@1.0.2
html-tools@1.0.3
htmljs@1.0.3
id-map@1.0.2
jquery@1.0.2
json@1.0.2
livedata@1.0.12
logging@1.0.6
meteor@1.1.4
minifiers@1.1.3
minimongo@1.0.6
momentjs:moment@2.8.4
observe-sequence@1.0.4
ordered-dict@1.0.2
random@1.0.2
reactive-var@1.0.4
retry@1.0.2
spacebars-compiler@1.0.4
templating@1.0.10
tracker@1.0.4
ui@1.0.5
underscore@1.0.2
4 changes: 3 additions & 1 deletion autoform-select2.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global AutoForm, _, $, Template */

AutoForm.addInputType("select2", {
template: "afSelect2",
valueOut: function () {
Expand Down Expand Up @@ -83,7 +85,7 @@ AutoForm.addInputType("select2", {

Template.afSelect2.helpers({
optionAtts: function afSelectOptionAtts() {
var item = this
var item = this;
var atts = {
value: item.value
};
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
name: 'aldeed:autoform-select2',
summary: 'Custom select2 input type for AutoForm',
version: '1.0.2',
version: '1.0.3',
git: 'https://github.com/aldeed/meteor-autoform-select2.git'
});

Expand Down
10 changes: 6 additions & 4 deletions themes/bootstrap3.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Template["afSelect2_bootstrap3"].helpers({
/* global Template, AutoForm */

Template.afSelect2_bootstrap3.helpers({
optionAtts: function afSelectOptionAtts() {
var item = this
var item = this;
var atts = {
value: item.value
};
Expand All @@ -18,11 +20,11 @@ Template["afSelect2_bootstrap3"].helpers({
}
});

Template["afSelect2_bootstrap3"].rendered = function () {
Template.afSelect2_bootstrap3.rendered = function () {
// instanciate select2
this.$('select').select2(this.data.atts.select2Options || {});
};

Template["afSelect2_bootstrap3"].destroyed = function () {
Template.afSelect2_bootstrap3.destroyed = function () {
this.$('select').select2('destroy');
};

0 comments on commit e35c0be

Please sign in to comment.