Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change "manage tools" window to "add tool" window

  • Loading branch information...
commit cd30efad70a7bdc897aeabd2af69aa1531432e7c 1 parent cc26320
@angelonuffer authored
Showing with 7 additions and 11 deletions.
  1. +3 −4 gamba/index.html
  2. +1 −1  gamba/svgimage.css
  3. +3 −6 gamba/svgimage.js
View
7 gamba/index.html
@@ -17,10 +17,9 @@
</div>
<svg id="svgimage">
</svg>
- <div id="manage_tools_wrapper">
- <div id="manage_tools">
- <button id="add_tool">Add tool</button>
- </div>
+ <div id="add_tool">
+ <input type="text" id="tool_path" />
+ <button id="add_tool_button">Add</button>
</div>
</body>
</html>
View
2  gamba/svgimage.css
@@ -13,7 +13,7 @@ svg#svgimage {
left: 30px;
}
-div#manage_tools_wrapper {
+div#add_tool {
display: none;
}
View
9 gamba/svgimage.js
@@ -22,19 +22,16 @@ $(document).ready(function() {
width: svg_image_width - 30,
})
var manage_tools = new Tool(
- name = "Manage tools",
+ name = "Add tool",
icon_url = "images/kcontrol-3.png",
handler = function() {
jQuery.window({
- title: "Manage tools",
+ title: "Add tool",
icon: "images/kcontrol-3.png",
- content: $("div#manage_tools_wrapper").html(),
+ content: $("div#add_tool").html(),
minimizable: false,
maximizable: false,
})
- $("button#add_tool").click(function() {
- $("div#manage_tools").append($("<input />").attr("type", "text"))
- })
}
)
})
Please sign in to comment.
Something went wrong with that request. Please try again.