Spot v2: Project Management
This commit is contained in:
@@ -4,7 +4,7 @@ function Spot(asGlobals)
|
||||
this.consts = asGlobals.consts;
|
||||
this.consts.hash_sep = '-';
|
||||
this.consts.title = 'Te Araroa';
|
||||
this.consts.default_page = 'messages';
|
||||
this.consts.default_page = 'project';
|
||||
|
||||
/* Initialization */
|
||||
|
||||
@@ -63,11 +63,12 @@ function Spot(asGlobals)
|
||||
this.get = function(sAction, fOnSuccess, oVars, fOnError, bProcessIcon)
|
||||
{
|
||||
if(!oVars) oVars = {};
|
||||
fOnError = fOnError || function(textStatus, errorThrown) {console.log(textStatus+' '+errorThrown);};
|
||||
bProcessIcon = bProcessIcon || false;
|
||||
//if(bProcessIcon) self.addBufferIcon();
|
||||
|
||||
oVars['a'] = sAction;
|
||||
$.ajax(
|
||||
return $.ajax(
|
||||
{
|
||||
url: self.consts.process_page,
|
||||
data: oVars,
|
||||
@@ -85,8 +86,7 @@ function Spot(asGlobals)
|
||||
.fail(function(jqXHR, textStatus, errorThrown)
|
||||
{
|
||||
//if(bProcessIcon) self.resetIcon();
|
||||
if(!fOnError) console.log(textStatus+' '+errorThrown);
|
||||
else fOnError(textStatus);
|
||||
fOnError(textStatus, errorThrown);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user