Rename control files
This commit is contained in:
parent
aae10fbc36
commit
aa8aadfae7
@ -6,7 +6,7 @@ load('scrollbar.js');
|
|||||||
load('event-timer.js');
|
load('event-timer.js');
|
||||||
load('graphic.js');
|
load('graphic.js');
|
||||||
|
|
||||||
var CONTROL_EDIT = '1';
|
var CONTROL_FRAMEEDIT = '1';
|
||||||
|
|
||||||
function edit(fo) {
|
function edit(fo) {
|
||||||
log(LOG_DEBUG,'+ Control EDIT loaded');
|
log(LOG_DEBUG,'+ Control EDIT loaded');
|
6
main.js
6
main.js
@ -829,7 +829,7 @@ while(bbs.online) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
require('ansitex/load/edit.js','CONTROL_EDIT');
|
require('ansitex/load/control-frameedit.js','CONTROL_FRAMEEDIT');
|
||||||
|
|
||||||
// If we are editing a specific frame, attempt to load it
|
// If we are editing a specific frame, attempt to load it
|
||||||
if (next_page) {
|
if (next_page) {
|
||||||
@ -1037,12 +1037,12 @@ while(bbs.online) {
|
|||||||
// If this is the register page
|
// If this is the register page
|
||||||
if (fo.page === pageStr(REGISTER_FRAME)) {
|
if (fo.page === pageStr(REGISTER_FRAME)) {
|
||||||
log(LOG_DEBUG,'Adding REGISTER to control stack');
|
log(LOG_DEBUG,'Adding REGISTER to control stack');
|
||||||
require('ansitex/load/'+fo.key[1]+'.js','CONTROL_REGISTER');
|
require('ansitex/load/control-'+fo.key[1]+'.js','CONTROL_REGISTER');
|
||||||
control.push(eval("new "+fo.key[1]+'();'));
|
control.push(eval("new "+fo.key[1]+'();'));
|
||||||
|
|
||||||
} else if (fo.page === pageStr(SQRL_FRAME)) {
|
} else if (fo.page === pageStr(SQRL_FRAME)) {
|
||||||
log(LOG_DEBUG,'Adding SQRL to control stack');
|
log(LOG_DEBUG,'Adding SQRL to control stack');
|
||||||
require('ansitex/load/'+fo.key[1]+'.js','CONTROL_SQRL');
|
require('ansitex/load/control-'+fo.key[1]+'.js','CONTROL_SQRL');
|
||||||
control.push(eval("new "+fo.key[1]+'();'));
|
control.push(eval("new "+fo.key[1]+'();'));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user