(type, x, y)
| 320 | } |
| 321 | |
| 322 | function showRightMenu(type, x, y){ |
| 323 | $("#rMenu ul").show(); |
| 324 | if (type === "root") { |
| 325 | $("#createPlottingLayer").show(); |
| 326 | $("#activeChildPlotLayer").hide(); |
| 327 | $("#activePlottingLayer").hide(); |
| 328 | $("#fixSymScale").hide(); |
| 329 | $("#createChildPlotLayer").hide(); |
| 330 | $("#setMinVisibleScale").hide(); |
| 331 | $("#setMaxVisibleScale").hide(); |
| 332 | $("#clearVisibleScale").hide(); |
| 333 | } else if(type === "PlottingLayer"){ |
| 334 | $("#createPlottingLayer").hide(); |
| 335 | $("#activeChildPlotLayer").hide(); |
| 336 | $("#activePlottingLayer").show(); |
| 337 | $("#fixSymScale").show(); |
| 338 | $("#createChildPlotLayer").show(); |
| 339 | $("#setMinVisibleScale").show(); |
| 340 | $("#setMaxVisibleScale").show(); |
| 341 | $("#clearVisibleScale").show(); |
| 342 | } else if(type === "ChildPlottingLayer"){ |
| 343 | $("#createPlottingLayer").hide(); |
| 344 | $("#activePlottingLayer").hide(); |
| 345 | $("#fixSymScale").hide(); |
| 346 | $("#createChildPlotLayer").hide(); |
| 347 | $("#setMinVisibleScale").hide(); |
| 348 | $("#setMaxVisibleScale").hide(); |
| 349 | $("#clearVisibleScale").hide(); |
| 350 | $("#activeChildPlotLayer").show(); |
| 351 | } |
| 352 | |
| 353 | y += document.body.scrollTop; |
| 354 | x += document.body.scrollLeft; |
| 355 | $("#rMenu").css({"top":y+"px", "left":x+"px", "visibility":"visible"}); |
| 356 | |
| 357 | $("body").bind("mousedown", onBodyMouseDown); |
| 358 | } |
| 359 | |
| 360 | function hideRightMenu(){ |
| 361 | currentSelectedNode = null; |
no test coverage detected