added supporting files to mapping controller - could be reverted with no problems probably
This commit is contained in:
parent
101f49b9e6
commit
6bcb575578
7 changed files with 28 additions and 6 deletions
|
@ -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() {
|
||||
|
|
3
app/assets/javascripts/mapping.js.coffee
Normal file
3
app/assets/javascripts/mapping.js.coffee
Normal 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/
|
3
app/assets/stylesheets/mapping.css.scss
Normal file
3
app/assets/stylesheets/mapping.css.scss
Normal 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/
|
2
app/helpers/mapping_helper.rb
Normal file
2
app/helpers/mapping_helper.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
module MappingHelper
|
||||
end
|
2
app/views/mapping/new.html.erb
Normal file
2
app/views/mapping/new.html.erb
Normal file
|
@ -0,0 +1,2 @@
|
|||
<h1>Mapping#new</h1>
|
||||
<p>Find me in app/views/mapping/new.html.erb</p>
|
9
test/functional/mapping_controller_test.rb
Normal file
9
test/functional/mapping_controller_test.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
require 'test_helper'
|
||||
|
||||
class MappingControllerTest < ActionController::TestCase
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
4
test/unit/helpers/mapping_helper_test.rb
Normal file
4
test/unit/helpers/mapping_helper_test.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class MappingHelperTest < ActionView::TestCase
|
||||
end
|
Loading…
Reference in a new issue