Browse Source

Update the model when dropping towers

master
Chris Smith 12 years ago
parent
commit
8a4d0e48aa
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      index.html

+ 3
- 0
index.html View File

@@ -47,6 +47,9 @@
47 47
        .draggable({
48 48
         start: function(evt) {
49 49
          return !evt.shiftKey;
50
+        },
51
+        stop: function() {
52
+         $(this).data('tower').position = adjustMapOffset($(this).offsetFrom('#mapcontainer'), thisLevel, 1);
50 53
         }
51 54
        })
52 55
        .css('position', 'absolute')

Loading…
Cancel
Save