This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AutoForm.hooks({ | |
| contactForm:{ | |
| onSubmit:function(insertDoc, updateDoc,currentDoc){ | |
| if(grecaptcha.getResponse(opt_widget_id).succes = false){ | |
| Meteor.Error('Not a Human.') | |
| } | |
| } | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FlowRouter.route('/home', { | |
| // calls just before the action | |
| triggersEnter: [setSite], | |
| action: function() { | |
| // do something you like | |
| }); | |
| setSite = function(){ | |
| var url = window.location.hostname; | |
| var urlBits = url.split('.'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| schema = new SimpleSchema | |
| categoryIdId: | |
| type: String | |
| label: '' | |
| optional: true | |
| autoform: | |
| type: 'select2' | |
| options: ()-> | |
| cat = InventoryCategories.find().fetch() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Accounts.config({ | |
| forbidClientAccountCreation : true | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| faces = | |
| smile: 'url' | |
| smile2: 'url' | |
| UI.registerHelper 'emoji', (stringsearch)-> | |
| #your logic here | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| question: 'what color is the sky' | |
| type : 'mult' | |
| options : { | |
| 'red', 'green','yellow' | |
| } | |
| answer : 'red' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #inside of addImage:: | |
| this._removedImageIds = _.without(this._removedImageIds, image._id); | |
| # inside of save | |
| _.each(this._removedImageIds, function (id) { | |
| this.constructor.imageCollection.remove(id); | |
| }, this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| useraccounts:core 1.11.1 Meteor sign up and sign in templates core package. | |
| accounts-password 1.1.1 Password support for accounts | |
| accounts-ui 1.1.5 Simple templates to add login widgets to an app | |
| alanning:roles 1.2.13 Role-based authorization | |
| aldeed:autoform 5.3.0 Easily create forms with automatic insert and update, and automatic reactive validation. | |
| aldeed:collection2 2.3.3 Automatic validation of insert and update operations on the client and server. | |
| ccorcos:transitioner 2.0.1 Page transitions integrated with Iron Router. | |
| chriswessels:slideout 0.1.9 A touch slideout navigation menu for your mobile web apps | |
| chuangbo:cookie 1.1.0 Simple cookies for browser. | |
| coffeescript 1.0.6 Javascript dialect with fewer braces and semicolons |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "error": 403, | |
| "reason": "Signups forbidden", | |
| "message": "Signups forbidden [403]", | |
| "errorType": "Meteor.Error" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var x = 'value'; | |
| data = {$inc:{}} | |
| data.$inc[x]['value1'] = 2 |