added supporting files to mapping controller - could be reverted with no problems probably

This commit is contained in:
Devin Howard 2013-02-28 19:57:04 -05:00
parent 101f49b9e6
commit 6bcb575578
7 changed files with 28 additions and 6 deletions

View file

@ -29,15 +29,14 @@ function selectEdgeOnClickHandler(adj, e) {
}//selectEdgeOnClickHandler
function nodeDoubleClickHandler(node, e) {
node.setData('onCanvas', true);
node.setData('inCommons', false);
deselectNode(node);
console.log("Here's the node you clicked:");
console.log(node);
//if ($('.maps.onMap').length > 0 && node.getData('mappingid')) {
// //TODO
// var mappingId = createAMapping(alert('unimp'));
// node.setData('mappingid', mappingId);
//}
if ($('.maps.onMap').length > 0) {
//TODO var mappingId = createAMapping(alert('unimp'));
//node.setData('mappingid', mappingId);
}
}//doubleClickNodeHandler
function nodeWasDoubleClicked() {

View file

@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

View file

@ -0,0 +1,3 @@
// Place all the styles related to the mapping controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View file

@ -0,0 +1,2 @@
module MappingHelper
end

View file

@ -0,0 +1,2 @@
<h1>Mapping#new</h1>
<p>Find me in app/views/mapping/new.html.erb</p>

View file

@ -0,0 +1,9 @@
require 'test_helper'
class MappingControllerTest < ActionController::TestCase
test "should get new" do
get :new
assert_response :success
end
end

View file

@ -0,0 +1,4 @@
require 'test_helper'
class MappingHelperTest < ActionView::TestCase
end