Skip to content

Commit

Permalink
change "manage tools" window to "add tool" window
Browse files Browse the repository at this point in the history
  • Loading branch information
angelonuffer committed Dec 1, 2011
1 parent cc26320 commit cd30efa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
7 changes: 3 additions & 4 deletions gamba/index.html
Expand Up @@ -17,10 +17,9 @@
</div> </div>
<svg id="svgimage"> <svg id="svgimage">
</svg> </svg>
<div id="manage_tools_wrapper"> <div id="add_tool">
<div id="manage_tools"> <input type="text" id="tool_path" />
<button id="add_tool">Add tool</button> <button id="add_tool_button">Add</button>
</div>
</div> </div>
</body> </body>
</html> </html>
2 changes: 1 addition & 1 deletion gamba/svgimage.css
Expand Up @@ -13,7 +13,7 @@ svg#svgimage {
left: 30px; left: 30px;
} }


div#manage_tools_wrapper { div#add_tool {
display: none; display: none;
} }


Expand Down
9 changes: 3 additions & 6 deletions gamba/svgimage.js
Expand Up @@ -22,19 +22,16 @@ $(document).ready(function() {
width: svg_image_width - 30, width: svg_image_width - 30,
}) })
var manage_tools = new Tool( var manage_tools = new Tool(
name = "Manage tools", name = "Add tool",
icon_url = "images/kcontrol-3.png", icon_url = "images/kcontrol-3.png",
handler = function() { handler = function() {
jQuery.window({ jQuery.window({
title: "Manage tools", title: "Add tool",
icon: "images/kcontrol-3.png", icon: "images/kcontrol-3.png",
content: $("div#manage_tools_wrapper").html(), content: $("div#add_tool").html(),
minimizable: false, minimizable: false,
maximizable: false, maximizable: false,
}) })
$("button#add_tool").click(function() {
$("div#manage_tools").append($("<input />").attr("type", "text"))
})
} }
) )
}) })

0 comments on commit cd30efa

Please sign in to comment.