Permalink
Browse files

fix: drag&drop for items

  • Loading branch information...
cbries committed Dec 10, 2017
1 parent b7bcc37 commit a3f5c93f89d54e5f9fd3a6e9feb5829cf335dfeb
Showing with 9 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +8 −4 RailwayEssentialWeb/Resources/Webeditor/js/railwayessential.js
View
@@ -289,3 +289,4 @@ __pycache__/
*.xsd.cs
/cov-int
/Setup/setup.exe
/RailwayEssentialMdi/Testprojekte/Project2
@@ -21,8 +21,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var TESTDATA = false;
var isEdit = false;
var TESTDATA = true;
var isEdit = true;
const ModeAddMove = 0;
const ModeRemove = 1;
@@ -334,8 +334,8 @@ function rebuildTable() {
function findTargetTd(evt, callback) {
var clientX = evt.clientX;
var clientY = evt.clientY;
var clientX = evt.pageX;
var clientY = evt.pageY;
$('td').each(function (index, el) {
@@ -650,6 +650,8 @@ $(document).ready(function (e) {
var col = $(this).parent().children().index($(this)) + 1;
var row = $(this).parent().parent().children().index($(this).parent()) + 1;
//console.log("Pos: " + col + ", " + row);
if (isDragging && objDrag !== null) {
// ###################
@@ -690,6 +692,8 @@ $(document).ready(function (e) {
if (c.find("svg").length == 1)
return;
//console.log(c);
//var img = $(svgCache[src]).clone();
var symbol = src.substring(src.lastIndexOf('/') + 1);
symbol = symbol.substring(0, symbol.lastIndexOf('.'));

0 comments on commit a3f5c93

Please sign in to comment.