Spot v2: Project Management

This commit is contained in:
2019-01-26 10:13:06 +01:00
parent b92c6fb5ed
commit 591a2c5bad
25 changed files with 1649 additions and 9510 deletions

View File

@@ -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);
});
};