diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-06-10 12:22:01 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-06-10 12:22:01 +0200 |
commit | 86985b454f75ac7f87e0dfe94fd754d7cbb0bf09 (patch) | |
tree | 42094d12360158d96bf8149d1b7a4c25e5445430 /library/ace/ext-statusbar.js | |
parent | 9d5d3a946817c1b1a9dc18dead85bc989e820564 (diff) | |
parent | c55a7b5f362e62696ef7d44cc972cb46c2802646 (diff) | |
download | volse-hubzilla-86985b454f75ac7f87e0dfe94fd754d7cbb0bf09.tar.gz volse-hubzilla-86985b454f75ac7f87e0dfe94fd754d7cbb0bf09.tar.bz2 volse-hubzilla-86985b454f75ac7f87e0dfe94fd754d7cbb0bf09.zip |
Merge branch 'dev' into sabre32
Diffstat (limited to 'library/ace/ext-statusbar.js')
-rw-r--r-- | library/ace/ext-statusbar.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/ace/ext-statusbar.js b/library/ace/ext-statusbar.js new file mode 100644 index 000000000..a5ab7ed95 --- /dev/null +++ b/library/ace/ext-statusbar.js @@ -0,0 +1,5 @@ +ace.define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"],function(e,t,n){"use strict";var r=e("ace/lib/dom"),i=e("ace/lib/lang"),s=function(e,t){this.element=r.createElement("div"),this.element.className="ace_status-indicator",this.element.style.cssText="display: inline-block;",t.appendChild(this.element);var n=i.delayedCall(function(){this.updateStatus(e)}.bind(this)).schedule.bind(null,100);e.on("changeStatus",n),e.on("changeSelection",n),e.on("keyboardActivity",n)};(function(){this.updateStatus=function(e){function n(e,n){e&&t.push(e,n||"|")}var t=[];n(e.keyBinding.getStatusText(e)),e.commands.recording&&n("REC");var r=e.selection,i=r.lead;if(!r.isEmpty()){var s=e.getSelectionRange();n("("+(s.end.row-s.start.row)+":"+(s.end.column-s.start.column)+")"," ")}n(i.row+":"+i.column," "),r.rangeCount&&n("["+r.rangeCount+"]"," "),t.pop(),this.element.textContent=t.join("")}}).call(s.prototype),t.StatusBar=s}); + (function() { + ace.require(["ace/ext/statusbar"], function() {}); + })(); +
\ No newline at end of file |