Skip to content

Commit

Permalink
Clicking on the version number on Dev branch opens
Browse files Browse the repository at this point in the history
Clicking on the version number on Dev branch opens the changelist.
  • Loading branch information
robotboy655 committed Sep 22, 2014
1 parent 55b0603 commit fa350aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions garrysmod/html/js/menu/control.Menu.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

if (!IN_ENGINE)
{
window.util = {
Expand Down Expand Up @@ -101,7 +102,7 @@ function MenuController( $scope, $rootScope )
//
$scope.BackToGame = function()
{
lua.Run( "RawConsoleCommand( 'gameui_hide' );" );
lua.Run( "RawConsoleCommand( 'gameui_hide' );" );
}

$scope.Disconnect = function ()
Expand All @@ -128,10 +129,10 @@ function MenuController( $scope, $rootScope )

$scope.ShowNews = function()
{
if ( gScope.Branch != "unknown" ) return lua.Run( "gui.OpenURL( 'http://wiki.garrysmod.com/changelist/' )" );
console.log( "Opening News!" );
lua.Run( "gui.OpenURL( 'http://www.garrysmod.com/updates/' )" );
}


// Background
ChangeBackground();
Expand Down Expand Up @@ -346,4 +347,4 @@ $(document).on( "click", ".options a", function () { lua.PlaySound( "garrysmo
$(document).on( "mouseenter", ".noisy", function () { lua.PlaySound( "garrysmod/ui_hover.wav" ); } );
$(document).on( "click", ".noisy", function () { lua.PlaySound( "garrysmod/ui_click.wav" ); } );
$(document).on( "mouseenter", ".ui_sound_return", function () { lua.PlaySound( "garrysmod/ui_hover.wav" ); } );
$(document).on( "click", ".ui_sound_return", function () { lua.PlaySound( "garrysmod/ui_return.wav" ); } );
$(document).on( "click", ".ui_sound_return", function () { lua.PlaySound( "garrysmod/ui_return.wav" ); } );

0 comments on commit fa350aa

Please sign in to comment.