Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit db87f92

Browse files
committed
Export promptLabel in extern (closes #28)
1 parent 499aa9d commit db87f92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.console.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
// Prompt
114114
var promptBox;
115115
var prompt;
116-
var promptLabel = config && config.promptLabel? config.promptLabel : "> ";
117116
var continuedPromptLabel = config && config.continuedPromptLabel?
118117
config.continuedPromptLabel : "> ";
119118
var column = 0;
@@ -143,6 +142,7 @@
143142
////////////////////////////////////////////////////////////////////////
144143
// Main entry point
145144
(function(){
145+
extern.promptLabel = config && config.promptLabel? config.promptLabel : "> ";
146146
container.append(inner);
147147
inner.append(typer);
148148
typer.css({position:'absolute',top:0,left:'-9999px'});
@@ -233,7 +233,7 @@
233233
enableInput();
234234
promptBox = $('<div class="jquery-console-prompt-box"></div>');
235235
var label = $('<span class="jquery-console-prompt-label"></span>');
236-
var labelText = extern.continuedPrompt? continuedPromptLabel : promptLabel;
236+
var labelText = extern.continuedPrompt? continuedPromptLabel : extern.promptLabel;
237237
promptBox.append(label.text(labelText).show());
238238
label.html(label.html().replace(' ','&nbsp;'));
239239
prompt = $('<span class="jquery-console-prompt"></span>');

0 commit comments

Comments
 (0)