mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-03 00:06:40 +00:00
Fix rename in some cases. Added unbind for event buttons.
This commit is contained in:
parent
db6167921e
commit
94f643f587
@ -297,6 +297,7 @@ DefaultHandler.prototype.MouseUp = function(pos)
|
|||||||
handler.RenameVertex(enumType.GetVertexText(0));
|
handler.RenameVertex(enumType.GetVertexText(0));
|
||||||
userAction("RenameVertex");
|
userAction("RenameVertex");
|
||||||
};
|
};
|
||||||
|
$('#message').unbind();
|
||||||
$('#message').on('click', '#renameButton', function(){
|
$('#message').on('click', '#renameButton', function(){
|
||||||
var customEnum = new TextEnumVertexsCustom();
|
var customEnum = new TextEnumVertexsCustom();
|
||||||
customEnum.ShowDialog(callback, g_rename, g_renameVertex, handler.selectedObject.mainText);
|
customEnum.ShowDialog(callback, g_rename, g_renameVertex, handler.selectedObject.mainText);
|
||||||
@ -310,6 +311,7 @@ DefaultHandler.prototype.MouseUp = function(pos)
|
|||||||
var handler = this;
|
var handler = this;
|
||||||
if (!this.editEdgeRename)
|
if (!this.editEdgeRename)
|
||||||
{
|
{
|
||||||
|
$('#message').unbind();
|
||||||
$('#message').on('click', '#editEdge', function(){
|
$('#message').on('click', '#editEdge', function(){
|
||||||
var direct = false;
|
var direct = false;
|
||||||
var dialogButtons = {};
|
var dialogButtons = {};
|
||||||
@ -595,6 +597,7 @@ ShowAdjacencyMatrix.prototype.show = function()
|
|||||||
var handler = this;
|
var handler = this;
|
||||||
var dialogButtons = {};
|
var dialogButtons = {};
|
||||||
|
|
||||||
|
$('#AdjacencyMatrixField').unbind();
|
||||||
$( "#AdjacencyMatrixField" ).on('keyup change', function (eventObject)
|
$( "#AdjacencyMatrixField" ).on('keyup change', function (eventObject)
|
||||||
{
|
{
|
||||||
if (!handler.app.TestAdjacencyMatrix($( "#AdjacencyMatrixField" ).val(), [], []))
|
if (!handler.app.TestAdjacencyMatrix($( "#AdjacencyMatrixField" ).val(), [], []))
|
||||||
@ -652,6 +655,7 @@ ShowIncidenceMatrix.prototype.show = function()
|
|||||||
var handler = this;
|
var handler = this;
|
||||||
var dialogButtons = {};
|
var dialogButtons = {};
|
||||||
|
|
||||||
|
$('#IncidenceMatrixField').unbind();
|
||||||
$( "#IncidenceMatrixField" ).on('keyup change', function (eventObject)
|
$( "#IncidenceMatrixField" ).on('keyup change', function (eventObject)
|
||||||
{
|
{
|
||||||
if (!handler.app.TestIncidenceMatrix($( "#IncidenceMatrixField" ).val(), [], []))
|
if (!handler.app.TestIncidenceMatrix($( "#IncidenceMatrixField" ).val(), [], []))
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<script src="<?= Root('i/js/dev/jquery-ui.js')?>"></script>
|
<script src="<?= Root('i/js/dev/jquery-ui.js')?>"></script>
|
||||||
<script src="<?= Root('i/js/dev/jquery.feedback_me.js')?>"></script>
|
<script src="<?= Root('i/js/dev/jquery.feedback_me.js')?>"></script>
|
||||||
<script src="<?= Root("script/example.js?v=12")?>" ></script>
|
<script src="<?= Root("script/example.js?v=13")?>" ></script>
|
||||||
</head>
|
</head>
|
||||||
<!--
|
<!--
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user