Permalink
Browse files

Clicking on the version number on Dev branch opens

Clicking on the version number on Dev branch opens the changelist.
  • Loading branch information...
1 parent 55b0603 commit fa350aaf06c3262297aef5a3dae1ff979c205b8e @robotboy655 robotboy655 committed Sep 22, 2014
Showing with 4 additions and 3 deletions.
  1. +4 −3 garrysmod/html/js/menu/control.Menu.js
@@ -1,3 +1,4 @@
+
if (!IN_ENGINE)
{
window.util = {
@@ -101,7 +102,7 @@ function MenuController( $scope, $rootScope )
//
$scope.BackToGame = function()
{
- lua.Run( "RawConsoleCommand( 'gameui_hide' );" );
+ lua.Run( "RawConsoleCommand( 'gameui_hide' );" );
}
$scope.Disconnect = function ()
@@ -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();
@@ -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.