Author: Lars Michelsen <[email protected]>
Date: Tue Apr 5 11:29:33 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Tue Apr 5 11:29:33 2011 +0200
Lines can now be deleted in regular frontend
---
.../frontend/nagvis-js/js/NagVisStatefulObject.js | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index 5cf2dce..b31c570 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -1012,11 +1012,25 @@ var NagVisStatefulObject = NagVisObject.extend({
this.parseControlDrag(i, x[i], y[i], - size / 2, - size
/ 2, size);
makeDragable([this.conf.object_id+'-drag-'+i],
this.saveObject, this.moveObject);
}
+
+ this.parseControlDelete(x.length, this.getLineMid(this.conf.x,
'x'), this.getLineMid(this.conf.y, 'y'),
+ 15, -15, 10);
+
size = null;
x = null;
y = null;
},
+ getLineMid: function(coord, dir) {
+ var c = coord.split(',');
+ if(c.length == 2)
+ return middle(this.parseCoords(coord, dir)[0],
+ this.parseCoords(coord, dir)[1],
+ this.conf.line_cut);
+ else
+ return coord[1];
+ },
+
removeControls: function() {
var oControls =
document.getElementById(this.conf.object_id+'-controls');
if(oControls)
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins