mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-08-20 12:30:44 +02:00
change old addEvent method call by .on()
This commit is contained in:
parent
fedef3cbac
commit
367a6d7cb7
@ -21,7 +21,7 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
var mapId = 'welcome';
|
||||
$(document).addEvent('loadcomplete', function(resource) {
|
||||
$(document).on('loadcomplete', function(resource) {
|
||||
var options = loadDesignerOptions();
|
||||
var designer = buildDesigner(options);
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
});
|
||||
|
||||
|
||||
$(document).addEvent('loadcomplete', function(resource) {
|
||||
$(document).on('loadcomplete', function(resource) {
|
||||
|
||||
$("dragImageNode").addEvent('mousedown', function(event) {
|
||||
event.preventDefault();
|
||||
|
@ -20,7 +20,7 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
var mapId = 'welcome';
|
||||
$(document).addEvent('loadcomplete', function(resource) {
|
||||
$(document).on('loadcomplete', function(resource) {
|
||||
|
||||
// Options has been defined in by a external ile ?
|
||||
var uri = new URI(window.location);
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).addEvent('loadcomplete', function (resource) {
|
||||
$(document).on('loadcomplete', function (resource) {
|
||||
try {
|
||||
var mapId = '${mindmap.id}';
|
||||
// Configure designer options ...
|
||||
|
@ -27,7 +27,7 @@
|
||||
<script type="text/javascript">
|
||||
var mapId = '${mindmap.id}';
|
||||
|
||||
$(document).addEvent('loadcomplete', function (resource) {
|
||||
$(document).on('loadcomplete', function (resource) {
|
||||
|
||||
// Configure designer options ...
|
||||
var options = loadDesignerOptions();
|
||||
|
@ -60,7 +60,7 @@
|
||||
<script type="text/javascript">
|
||||
var mapId = '${mindmap.id}';
|
||||
|
||||
$(document).addEvent('loadcomplete', function (resource) {
|
||||
$(document).on('loadcomplete', function (resource) {
|
||||
|
||||
// Configure designer options ...
|
||||
var options = loadDesignerOptions();
|
||||
|
Loading…
Reference in New Issue
Block a user