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
| /*global module:false*/ | |
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| /** | |
| * Watching | |
| * ======== |
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 dbh = require("../migrations"), | |
| relationName = "time_zones"; | |
| exports.up = function (next) { | |
| dbh.schema.createTable( | |
| relationName, | |
| function (table) { | |
| table.string("code", 50).primary(); | |
| table.timestamps(); | |
| table.integer("utc_offset").notNullable(); |
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
| return Backbone.View.extend( | |
| { | |
| _nodes: null, | |
| renderCfg: function () { | |
| return this._renderCfg || {}; | |
| }, | |
| renderContext: function () { | |
| console.log("views/base::renderContext"); |
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
| user.save( | |
| userSaveData, | |
| { | |
| success: _.bind(this._registerSuccess, this), | |
| error: _.bind(this._registerError, this) | |
| } | |
| ); | |
| _registerSuccess: function () { | |
| console.log("views/signUp::_registerSuccess"); |
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
| define( | |
| [ | |
| "backbone", | |
| "templates", | |
| "underscore" | |
| ], | |
| function (Backbone, templates, _) { | |
| "use strict"; | |
| var CLASS_EMPTY = "ws-list-empty"; |
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
| PasswordReset.find( | |
| { | |
| include: [ | |
| User | |
| ], | |
| where: { | |
| token: token, | |
| "users.email": email, | |
| expiresAt: { | |
| gte: (new Date()) |
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
| Uri.findAll( | |
| { | |
| include: [ | |
| { model: CurrentMetaData, as: "metadata" } | |
| ], | |
| where: { | |
| type: revTypeMap[type] | |
| } | |
| } | |
| ).then( |
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
| this["JST"]["activity/denied.html"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | |
| this.compilerInfo = [2,'>= 1.0.0-rc.3']; | |
| helpers = helpers || Handlebars.helpers; data = data || {}; | |
| return "<h2>Activity Access Denied</h2>\n"; | |
| }); |
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
| if (! DEBUG) { | |
| if (! window.console) { | |
| window.console = {}; | |
| } | |
| methods = ["log", "debug", "warn", "info"]; | |
| for (i = 0; i < methods.length; i++) { | |
| console[methods[i]] = function () {}; | |
| } | |
| } |
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
| _changeView: function (newView, options) { | |
| console.log("app::_changeView"); | |
| options = options || {}; | |
| options.renderFirst = (typeof options.renderFirst !== "undefined") ? options.renderFirst : true; | |
| if (this._currentView !== null && this._currentView === newView) { | |
| console.log("app::_changeView - no change needed"); | |
| return; | |
| } |
NewerOlder