mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-24 13:53:43 +00:00
stop showing loading... text
This commit is contained in:
parent
3f9a2ab9bd
commit
b561f6a0cc
2 changed files with 9 additions and 2 deletions
|
|
@ -282,7 +282,7 @@ function wireAngular(element, config) {
|
||||||
var server = config['database'] =="$MEMORY" ?
|
var server = config['database'] =="$MEMORY" ?
|
||||||
new FrameServer(window) :
|
new FrameServer(window) :
|
||||||
new Server(config['server'], jQuery['getScript']);
|
new Server(config['server'], jQuery['getScript']);
|
||||||
server = new VisualServer(server, new Status(element.find('body')), onUpdate);
|
server = new VisualServer(server, new NullStatus(element.find('body')), onUpdate);
|
||||||
var users = new Users(server, controlBar);
|
var users = new Users(server, controlBar);
|
||||||
var databasePath = '/data/' + config['database'];
|
var databasePath = '/data/' + config['database'];
|
||||||
var post = function(request, callback){
|
var post = function(request, callback){
|
||||||
|
|
@ -368,4 +368,4 @@ angular['compile'] = function(element, config) {
|
||||||
configureJQueryPlugins();
|
configureJQueryPlugins();
|
||||||
|
|
||||||
return wireAngular(jQuery(element), config);
|
return wireAngular(jQuery(element), config);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -775,6 +775,13 @@ PopUp.prototype = {
|
||||||
// Status
|
// Status
|
||||||
//////////////////////////////////
|
//////////////////////////////////
|
||||||
|
|
||||||
|
function NullStatus(body) {
|
||||||
|
};
|
||||||
|
|
||||||
|
NullStatus.prototype = {
|
||||||
|
beginRequest:function(){},
|
||||||
|
endRequest:function(){}
|
||||||
|
};
|
||||||
|
|
||||||
function Status(body) {
|
function Status(body) {
|
||||||
this.requestCount = 0;
|
this.requestCount = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue