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
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 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
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(); |
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
clean_snippet: function(snippet){ | |
snippet = snippet.replace(/'/gi, "("); // single quote will cause javascript problems inline. | |
snippet = snippet.replace(/[\t\n\r]/gi, ""); // remove tabs, newlines, and return chars | |
return this.rewrite_links(snippet); | |
}, | |
// Rewrite links in the snippets so they go back to the parent site. | |
rewrite_links: function(snippet){ | |
var obj = jQuery(snippet); | |
obj.find('[href]').attr('href', function(){ return com.oerglue.browser.make_abs_url(this.href); }); |
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
clean_snippet: function(snippet){ | |
snippet = snippet.replace(/'/gi, "("); // single quote will cause javascript problems inline. | |
snippet = snippet.replace(/[\t\n\r]/gi, ""); // remove tabs, newlines, and return chars | |
return this.rewrite_links(snippet); | |
}, | |
// Rewrite links in the snippets so they go back to the parent site. | |
rewrite_links: function(snippet){ | |
var obj = jQuery(snippet); | |
obj.find('[href]').attr('href', function(){ return com.oerglue.browser.make_abs_url(this.href); }); |
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
jQuery.fn.outerHtml = function(include_scripts) { | |
if(include_scripts === undefined){ include_scripts = false; } | |
var clone = this.clone(); | |
var items = jQuery.map(clone, function(element){ | |
if(jQuery.nodeName(element, "script")){ | |
if(include_scripts){ | |
var attributes; | |
if(element.attributes){ | |
attributes = jQuery.map(element.attributes, function(attribute){ | |
return attribute.name + '="' + attribute.value + '" '; |
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
node public/oerglue_js/app.build.js | |
/Users/jbasdf/projects/oerglue_proxy/public/oerglue_js/min-main-edit.js | |
---------------- | |
/Users/jbasdf/projects/oerglue_proxy/public/oerglue_js/libs/require/almond.js | |
/Users/jbasdf/projects/oerglue_proxy/public/oerglue_js/libs/jquery/jquery.js | |
/Users/jbasdf/projects/oerglue_proxy/public/oerglue_js/libs/underscore/underscore.js | |
/Users/jbasdf/projects/oerglue_proxy/public/oerglue_js/libs/backbone/backbone.js | |
/Users/jbasdf/projects/oerglue_proxy/public/oerglue_js/libs/utils/common.js | |
/Users/jbasdf/projects/oerglue_proxy/public/oerglue_js/libs/cookies.js |
OlderNewer