Skip to content

Commit cf01b81

Browse files
author
RiDdLeS
committed
Removed the unneeded third var on the ajaxLeftTab function
1 parent d679409 commit cf01b81

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/views/admin/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121

2222
<script>
2323
@section('onReadyJs')
24-
$.AjaxLeftTabs('/admin/', '/admin/users', '#users');
24+
$.AjaxLeftTabs('/admin/', 'users');
2525
@endsection
2626
</script>

app/views/user/account.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313

1414
<script>
1515
@section('onReadyJs')
16-
$.AjaxLeftTabs('/user/', '/user/profile', '#profile');
16+
$.AjaxLeftTabs('/user/', 'profile');
1717
@endsection
1818
</script>

public/js/AHScoreboard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function($){
2-
$.AjaxLeftTabs = function(baseURL, startURL, startTag){
2+
$.AjaxLeftTabs = function(baseURL, startTab){
33
var url = location.href;
44
var parts = url.split('#');
55

@@ -8,9 +8,9 @@
88
$('#ajaxContent').html('loading');
99
$('#ajaxContent').load(baseURL + parts[1]);
1010
} else {
11-
$(startTag).parent().addClass('active');
11+
$('#' + startTab).parent().addClass('active');
1212
$('#ajaxContent').html('loading');
13-
$('#ajaxContent').load(startURL);
13+
$('#ajaxContent').load(baseURL + startTab);
1414
}
1515
$('.ajaxLink').click(function() {
1616

0 commit comments

Comments
 (0)