Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Fix code style for quote.js.
Browse files Browse the repository at this point in the history
Signed-off-by: Euan Torano <[email protected]>
  • Loading branch information
euantorano committed Dec 18, 2016
1 parent 4007051 commit 330b907
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1",
"barryvdh/laravel-debugbar": "dev-master",
"friendsofphp/php-cs-fixer": "~2.0@dev",
"squizlabs/php_codesniffer": "~2.0@dev",
"mockery/mockery": "0.9.*@dev",
"symfony/dom-crawler": "~3.0",
"symfony/css-selector": "~3.0"
"symfony/css-selector": "~3.0",
"squizlabs/php_codesniffer": "^2.7",
"friendsofphp/php-cs-fixer": "^2.0"
},
"repositories": [
{
Expand Down
6 changes: 2 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 14 additions & 15 deletions resources/assets/js/quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,26 +276,25 @@
closeText: ''
});
modalContent.find('.view-quotes__quotes').css({
'max-height': ($(window).height()-250)+'px'
'max-height': ($(window).height() - 250) + 'px'
});
modal.html(modalContent.html());
modal.appendTo("body").modal({
zIndex: 1000,
closeText: ''
});

if (Modernizr.touch) {
$('.radio-buttons .radio-button, .checkbox-buttons .checkbox-button').click(function () {

});
} else {
$('span.icons i, a, .caption, time').powerTip({ placement: 's', smartPlacement: true });
}
if (Modernizr.touch) {
$('.radio-buttons .radio-button, .checkbox-buttons .checkbox-button').click(function () {
});
} else {
$('span.icons i, a, .caption, time').powerTip({placement: 's', smartPlacement: true});
}

$('.quote__select').on("click", $.proxy(this.quoteAdd, this));
$('.quote__remove').on("click", $.proxy(this.quoteRemove, this));
$(".select-all-quotes").on("click", $.proxy(this.addQuotes, this));
$('.modal-hide').hide();
$('.quote__select').on("click", $.proxy(this.quoteAdd, this));
$('.quote__remove').on("click", $.proxy(this.quoteRemove, this));
$(".select-all-quotes").on("click", $.proxy(this.addQuotes, this));
$('.modal-hide').hide();
}, this)).always(function () {
MyBB.Spinner.remove();
});
Expand Down Expand Up @@ -360,7 +359,7 @@

while ($post.next().length) {
$post = $post.next();
$post.data('id', $post.data('id')-1);
$post.data('id', $post.data('id') - 1);
}

this.quoteButtons();
Expand All @@ -383,7 +382,7 @@

while ($post.next().length) {
$post = $post.next();
$post.data('id', $post.data('id')-1);
$post.data('id', $post.data('id') - 1);
}

this.quoteButtons();
Expand Down Expand Up @@ -427,4 +426,4 @@
}

})
(jQuery, window);
(jQuery, window);

0 comments on commit 330b907

Please sign in to comment.