mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
refactor(cloudfunc) add format
This commit is contained in:
parent
cf0059fa2e
commit
aa0d7ffa26
4 changed files with 19 additions and 16 deletions
|
|
@ -41,6 +41,12 @@ var Util, exports, CloudFunc = {};
|
|||
CloudFunc.LEFTPANEL = 'left';
|
||||
CloudFunc.RIGHTPANEL = 'right';
|
||||
|
||||
CloudFunc.formatMsg = function(pMsg, pName, pStatus) {
|
||||
var status = pStatus || 'ok';
|
||||
msg = pMsg + ': ' + status + '("' + pName + '")';
|
||||
|
||||
return msg;
|
||||
};
|
||||
/**
|
||||
* Функция убирает последний слеш,
|
||||
* если он - последний символ строки
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue