mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-26 05:03:49 +01:00
change old addEvent method call by .on()
This commit is contained in:
parent
80ba57e5d3
commit
9fbe471585
@ -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