This file contains 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
App.Chosen = Ember.Select.extend({ | |
multiple: false, | |
width: '95%', | |
disableSearchThreshold: 10, | |
searchContains: true, | |
attributeBindings:['multiple', 'width', 'disableSearchThreshold', 'searchContains'], | |
didInsertElement: function(){ | |
this._super(); |
This file contains 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
// Chosen, a Select Box Enhancer for jQuery and Prototype | |
// by Patrick Filler for Harvest, http://getharvest.com | |
// | |
// Version 1.0.0 | |
// Full source at https://github.com/harvesthq/chosen | |
// Copyright (c) 2011 Harvest http://getharvest.com | |
// MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md | |
// This file is generated by `grunt build`, do not edit it by hand. | |
(function() { |
This file contains 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
App.InactivityWarningComponent = Ember.Component.extend({ | |
active: false, | |
inactiveTimeout: 12000000, // Amount of time before we redirect to the sign in screen - the session should have expired by this point. (20 minutes) | |
warningTimeout: 30000, // Amount of time the user has to perform an action before the last keep alive fires - 30 seconds | |
timeout: 1170000, // 19.5 minutes. We want to be less than the 20 minute timeout to be sure the session is renewed. | |
didInsertElement: function(){ | |
//if($('meta[name="in-development"]').attr('content')){ return; } // Uncomment and add a meta tag to your head if you want to avoid session timeout in development | |
var context = this; |
This file contains 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
{{ view Ember.Textfield | |
class="form-control" | |
placeholderBinding="controller.prompt" | |
valueBinding="controller.value" | |
onEvent="keyPress" | |
action="typing" | |
}} |
This file contains 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
App.Textfield = Ember.TextField.extend({ | |
init: function() { | |
this._super(); | |
this.on("keyUp", this, this.interpretKeyEvents); | |
}, | |
interpretKeyEvents: function(event){ | |
var map = TM.Textfield .KEY_EVENTS; | |
var method = map[event.keyCode]; |
This file contains 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
{{ view App.Textfield | |
class="form-control" | |
placeholderBinding="view.prompt" | |
valueBinding="view.value" | |
viewName="inputField" | |
arrow-up="arrowUp" | |
arrow-down="arrowDown" | |
}} |
This file contains 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 Facebook = { | |
init: function(){ | |
if(!GLOBAL_SETTINGS.FBappId){ return; } | |
if(GLOBAL_SETTINGS.application_name){ | |
Facebook.authorize_message = "Authorize your Facebook account for " + GLOBAL_SETTINGS.application_name; | |
} | |
Facebook.load_fb(); | |
$('#facebook_connect').on('click', function(e){ | |
e.preventDefault(); |
This file contains 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
{ context: '/Users/jbasdf/projects/canvas_starter_app/client/config', | |
entry: | |
{ app: | |
[ 'webpack-dev-server/client?http://localhost:8080/assets/', | |
'webpack/hot/dev-server', | |
'/Users/jbasdf/projects/canvas_starter_app/client/js/app.jsx' ], | |
app_admin: | |
[ 'webpack-dev-server/client?http://localhost:8080/assets/', | |
'webpack/hot/dev-server', | |
'/Users/jbasdf/projects/canvas_starter_app/client/js/app_admin.jsx' ], |
This file contains 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
"use strict"; | |
import React from "react"; | |
import assign from "object-assign"; | |
var { func } = React.PropTypes; | |
var mui = require('material-ui'); | |
var ThemeManager = new mui.Styles.ThemeManager(); |