diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index f9a37481..e87dda69 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -21,12 +21,13 @@ $('.nodemargin').css('padding-top',$('.focus').css('height')); $('#newtopic').click(function(event){ - obj = $('#new_item'); + obj = document.getElementById('new_item'); if (obj != null) { $('#new_item').fadeIn('fast'); - return false; + event.preventDefault(); } }); + }); diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 7f9141cb..75c53243 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -19,7 +19,7 @@ html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td, legend { margin: 0; padding: 0; } img {border:0; padding:0; margin:0; display:block; text-indent:-9999px;} -html, body, .main, .wrapper, .home { height: 100%; } +html, body, .main, .wrapper, #container { height: 100%; } html { } body { background:#031924 url(background2.jpg) repeat 0 0; font-family:Arial, Helvetica, sans-serif; background-attachment:fixed; color:#FFF; } @@ -30,9 +30,10 @@ h2 {display:block; text-align:center; background: #333; font-size:24px;} a {color:#2d6a5d; text-decoration:none;} .clearfloat {clear:both;} -.new_session, .new_synapse, .edit_item, .edit_synapse { display: block; width: 350px; margin: 0 auto; background: #D1D1D1; padding: 20px; border-radius: 15px; color: #000; } +.new_session, .new_user, .new_item, .new_synapse, .edit_item, .edit_synapse { display: block; width: 350px; margin: 0 auto; background: #D1D1D1; padding: 20px; border-radius: 15px; color: #000; border:2px solid #000; } -.new_item { display: none; position:absolute; left:50%; top:50%; margin:-175px 0 0 -195px; width: 350px; background: #D1D1D1; padding: 20px; border-radius: 15px; color: #000; border:2px solid #000; } +.anypage .new_item { display: none; position:absolute; left:50%; top:50%; margin:-175px 0 0 -195px; border:2px solid #000; } +#closenewtopic { position:absolute; top: 3px; right:3px; } label, select, input, textarea { display:block; } @@ -46,13 +47,14 @@ input[type="submit"] { margin-top:5px; } .contentarea ul {margin:0 0 0 1em; } .contentarea ol {margin:0 0 0 1.3em; } -.main { overflow:hidden; } +.main { overflow-x:hidden; } .headertop { display:block; position:fixed; top:0; left:0; z-index:10; height:38px; width:100%; min-width:622px; background: url(topbg2.png) repeat-x top left; } #mainTitle { float: left; } #mainTitle a { color:#FFF; } .headertop ul { display:block; float: right; } .headertop ul li {display:block; float:right; margin:10px 5px 0 5px; } +.headertop ul li a { color:#FFF; } .wrapper {display:block; height:100%; margin:50px 0; } diff --git a/app/models/item.rb b/app/models/item.rb index 06550adc..71c1053a 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -34,8 +34,6 @@ belongs_to :item_category #build a json object of everything connected to a specified node def map_as_json Jbuilder.encode do |json| - @single = Array.new - @single.push(self) @items = network(self,nil) json.array!(@items) do |item| diff --git a/app/views/items/_new.html.erb b/app/views/items/_new.html.erb index 51dcd046..76b4fd87 100644 --- a/app/views/items/_new.html.erb +++ b/app/views/items/_new.html.erb @@ -1,4 +1,6 @@ +