Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated jquery-console

  • Loading branch information...
commit ef3b421b84047edd7f659e7653f20aafa1007c89 1 parent 18640b7
@Raynes authored
Showing with 16 additions and 16 deletions.
  1. +16 −16 resources/public/javascript/jquery.console.js
View
32 resources/public/javascript/jquery.console.js
@@ -19,14 +19,14 @@
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-// COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+// COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
// TESTED ON
@@ -187,7 +187,7 @@
n.remove();
});
},4000);
- else if (style=='prompt') {
+ else if (style=='prompt') {
var a = $('<br/><div class="action"><a href="javascript:">OK</a><div class="clear"></div></div>');
n.append(a);
focused = false;
@@ -236,7 +236,7 @@
inner.removeClass('jquery-console-focus');
inner.addClass('jquery-console-nofocus');
});
-
+
////////////////////////////////////////////////////////////////////////
// Bind to the paste event of the input box so we know when we
// get pasted data
@@ -250,7 +250,7 @@
typer.val("");
}, 0);
});
-
+
////////////////////////////////////////////////////////////////////////
// Handle key hit before translation
// For picking up control characters like up/left/down/right
@@ -280,7 +280,7 @@
}
}
});
-
+
////////////////////////////////////////////////////////////////////////
// Handle key press
typer.keypress(function(e){
@@ -364,7 +364,7 @@
updatePromptDisplay();
}
};
-
+
function forwardDelete() {
if (deleteCharAtPos())
updatePromptDisplay();
@@ -509,7 +509,7 @@
restoreText = promptText;
updatePromptDisplay();
};
-
+
////////////////////////////////////////////////////////////////////////
// Move to another column relative to this one
// Negative means go back, positive means go forward.
@@ -609,7 +609,7 @@
var before = line.substring(0, column);
var current = line.substring(column,column+1);
if (current){
- current =
+ current =
'<span class="jquery-console-cursor">' +
htmlEncode(current) +
'</span>';
@@ -620,7 +620,7 @@
prompt.html(html);
scrollToBottom();
};
-
+
// Simple HTML encoding
// Simply replace '<', '>' and '&'
// TODO: Use jQuery's .html() trick, or grab a proper, fast
Please sign in to comment.
Something went wrong with that request. Please try again.