mirror of https://github.com/abpframework/abp.git
3 changed files with 23 additions and 21 deletions
@ -0,0 +1,4 @@ |
|||||
|
{ |
||||
|
"singleQuote": true, |
||||
|
"useTabs": true |
||||
|
} |
||||
@ -1,5 +1,5 @@ |
|||||
(function ($) { |
(function ($) { |
||||
$(function () { |
$(function () { |
||||
SimulationArea.init($('#SimulationArea')); |
SimulationArea.init($('#SimulationArea')); |
||||
}); |
}); |
||||
})(jQuery); |
})(jQuery); |
||||
|
|||||
@ -1,21 +1,19 @@ |
|||||
var SimulationArea = {}; |
var SimulationArea = {}; |
||||
(function ($) { |
(function ($) { |
||||
|
var $mainContainer = null; |
||||
|
|
||||
var $mainContainer = null; |
function refreshSimulationArea() { |
||||
|
$.get('/ClientSimulation/SimulationArea') |
||||
|
.done(function (result) { |
||||
|
$mainContainer.html(result); |
||||
|
}) |
||||
|
.always(function () { |
||||
|
setTimeout(refreshSimulationArea, 1000); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
function refreshSimulationArea() { |
SimulationArea.init = function ($container) { |
||||
$.get('/ClientSimulation/SimulationArea') |
$mainContainer = $container; |
||||
.done(function(result) { |
setTimeout(refreshSimulationArea, 1000); |
||||
$mainContainer.html(result); |
}; |
||||
}) |
})(jQuery); |
||||
.always(function() { |
|
||||
setTimeout(refreshSimulationArea, 1000); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
SimulationArea.init = function ($container) { |
|
||||
$mainContainer = $container; |
|
||||
setTimeout(refreshSimulationArea, 1000); |
|
||||
}; |
|
||||
|
|
||||
})(jQuery); |
|
||||
|
|||||
Loading…
Reference in new issue