mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(cloudcmd) indexProcessing: pData -> options
This commit is contained in:
parent
fadee42a1f
commit
0fc0b1b8ae
1 changed files with 8 additions and 9 deletions
17
cloudcmd.js
17
cloudcmd.js
|
|
@ -45,16 +45,15 @@
|
|||
/**
|
||||
* additional processing of index file
|
||||
*/
|
||||
function indexProcessing(pData) {
|
||||
var lPath, lReplace, lKeysPanel,
|
||||
left, right,
|
||||
function indexProcessing(options) {
|
||||
var keysPanel, left, right,
|
||||
LEFT = CloudFunc.PANEL_LEFT,
|
||||
RIGHT = CloudFunc.PANEL_RIGHT,
|
||||
lData = pData.data,
|
||||
panel = pData.panel;
|
||||
data = options.data,
|
||||
panel = options.panel;
|
||||
|
||||
if (!Config.appCache)
|
||||
lData = Util.removeStr(lData, [
|
||||
data = Util.removeStr(data, [
|
||||
/* min */
|
||||
' manifest=/cloudcmd.appcache',
|
||||
/* normal */
|
||||
|
|
@ -63,7 +62,7 @@
|
|||
|
||||
if (!Config.showKeysPanel) {
|
||||
lKeysPanel = '<div class="keyspanel';
|
||||
lData = lData.replace(lKeysPanel + '"', lKeysPanel +' hidden"');
|
||||
data = data.replace(keysPanel + '"', keysPanel +' hidden"');
|
||||
}
|
||||
|
||||
left = Util.render(PanelTemplate, {
|
||||
|
|
@ -78,12 +77,12 @@
|
|||
content : panel
|
||||
});
|
||||
|
||||
lData = Util.render(lData, {
|
||||
data = Util.render(data, {
|
||||
title : CloudFunc.getTitle(),
|
||||
fm : left + right
|
||||
});
|
||||
|
||||
return lData;
|
||||
return data;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue