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
| Template.QuotesEdit.helpers({ | |
| quote : function() { | |
| return Quotes.findOne({_id: this.quoteId}); | |
| }, | |
| account: function() { | |
| return Accounts.findOne({_id: this.quote.accountId}); | |
| } | |
| }); |
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
| Template.newLineItem.helpers({ | |
| search : function(query, callback) { | |
| console.log('in search'); | |
| Meteor.call('searchProducts', query, {}, function(err, res) { | |
| if (err) { | |
| console.log(err); | |
| return; | |
| } | |
| console.log(callback); | |
| callback(res.map(function(v){ |
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
| Template.editLineItem.events({ | |
| "blur input" : function(event,template) { | |
| var set = {}; | |
| set[template.$(event.target).data('id')] = template.$(event.target).val(); | |
| LineItems.update(template.data._id, {$set: set} ); | |
| } | |
| }); |
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
| I20150408-11:45:00.736(-4)? Exception while invoking method 'pages_undefinedCountPages' TypeError: Object #<Object> has no method 'find' | |
| I20150408-11:45:00.737(-4)? at Pages.__Pages.Pages.methods.CountPages (packages/alethes:pages/lib/pages.coffee:58:33) | |
| I20150408-11:45:00.737(-4)? at [object Object].<anonymous> (packages/alethes:pages/lib/pages.coffee:194:17) | |
| I20150408-11:45:00.738(-4)? at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1617:1) | |
| I20150408-11:45:00.738(-4)? at packages/ddp/livedata_server.js:648:1 | |
| I20150408-11:45:00.738(-4)? at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) | |
| I20150408-11:45:00.738(-4)? at packages/ddp/livedata_server.js:647:1 | |
| I20150408-11:45:00.738(-4)? at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) | |
| I20150408-11:45:00.738(-4)? at [object Object]._.extend.protocol_handlers.method (packages/ddp/livedata_server.js:646:1) | |
| I20150408-11:45:00.738(-4)? at packages/ddp/livedata_ |
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
| function Anagram(word) { | |
| this.word = word.toLowerCase(); | |
| function matches(words) { | |
| if(Array.isArray(words)) { | |
| return words.filter(isAnagram); | |
| } else { | |
| return Array.prototype.slice.call(arguments).filter(isAnagram); | |
| } | |
| } | |
| function isAnagram(word) { |
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
| => Meteor server restarted | |
| I20150422-23:32:39.241(-4)? Server Version: node-qbwc v0.0.1 | |
| I20150422-23:32:39.256(-4)? Client Version: 2.1.0.30 | |
| I20150422-23:32:39.273(-4)? { strUserName: 'test', strPassword: 'a327310' } | |
| I20150422-23:32:39.273(-4)? authenticate Stub | |
| I20150422-23:32:39.273(-4)? { strUserName: 'test', strPassword: 'a327310' } | |
| I20150422-23:32:40.838(-4)? sendRequestXML Stub [object Object] | |
| I20150422-23:32:45.884(-4)? getLastError Stub | |
| I20150422-23:32:51.051(-4)? closeConnection Stub |
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 http = Meteor.npmRequire('http'); | |
| var soap = Meteor.npmRequire('soap'); | |
| var myService = { | |
| QBWebConnectorSvc: { | |
| QBWebConnectorSvcSoap: { | |
| serverVersion: function() { | |
| var v = "node-qbwc v0.0.1"; | |
| console.log(("Server Version: " + v)); | |
| return { | |
| serverVersionResult: v |
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
| nestCategories = function(parentId, dashes) { | |
| if (parentId === undefined) | |
| parentId = ''; | |
| if (dashes === undefined) | |
| dashes = ''; | |
| var list = []; | |
| var categories = Categories.find({parentId: parentId}); | |
| categories.map(function(category) { | |
| list.push({ |
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 timing = {duration: 500, queue: false}; | |
| Template.allPasswords.events({ | |
| "click [data-action=getGroup]" : function(e, t) { | |
| e.preventDefault(); | |
| t.$('[data-target=allGroups]').animate({ | |
| opacity: 0.25, | |
| left: "-350px", | |
| }, timing); | |
| t.$('[data-target=groupPasswords]').animate({ |