Skip to content

Commit e74a3a0

Browse files
Javascript style update
1 parent 858d9e8 commit e74a3a0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎assets/javascripts/additionals.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* exported setClipboardJS */
22
/* global ClipboardJS */
3-
function setClipboardJS(element){
3+
function setClipboardJS(element) {
44
var clipboard = new ClipboardJS(element);
55
clipboard.on('success', function(e) {
66
$(element).tooltip({
@@ -59,7 +59,7 @@ function observeLiveSearchField(fieldId, targetId, target_url) {
5959
$this.attr('data-search-was', $this.val());
6060
var check = function() {
6161
var val = $this.val();
62-
if ($this.attr('data-search-was') != val){
62+
if ($this.attr('data-search-was') != val) {
6363
$this.attr('data-search-was', val);
6464

6565
var form = $('#query_form'); // grab the form wrapping the search bar.

‎assets/javascripts/additionals_macro_button.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ jsToolBar.prototype.elements.macros = {
55
fn: {
66
wiki: function() {
77
var This = this;
8-
this.macroMenu(function(macro){
8+
this.macroMenu(function(macro) {
99
This.encloseLineSelection('{{' + macro + '(', ')}}');
1010
});
1111
}
1212
}
1313
};
1414

1515
/* Macro menu buttons */
16-
jsToolBar.prototype.macroMenu = function(fn){
16+
jsToolBar.prototype.macroMenu = function(fn) {
1717
var menu = $('<ul style="position:absolute;"></ul>');
1818
for (var i = 0; i < this.macroList.length; i++) {
1919
var macroItem = $('<div></div>').text(this.macroList[i]);

0 commit comments

Comments
 (0)