From 37e6f5ee33710613c512b231c74d8f320075bb4e Mon Sep 17 00:00:00 2001 From: Matthewste Date: Sat, 16 Mar 2013 01:47:09 +0000 Subject: [PATCH] Fix to Java Error --- WebUI/objects.aspx | 9 ++++++-- WebUI/objtypes.aspx | 19 ++++++++++++---- WebUI/scripts.aspx | 55 +++++++++++++++++++++++++-------------------- 3 files changed, 53 insertions(+), 30 deletions(-) diff --git a/WebUI/objects.aspx b/WebUI/objects.aspx index ba8efb08..84041d8a 100644 --- a/WebUI/objects.aspx +++ b/WebUI/objects.aspx @@ -15,7 +15,10 @@ var intS = strCook.indexOf("$~"); var intE = strCook.indexOf("~$"); var strPos = strCook.substring(intS + 2, intE); - document.getElementById("propGrid").scrollTop = strPos; + var grid = document.getElementById("propGrid"); + if (grid != null) { + grid.scrollTop = strPos; + } } } function SetDivPosition() { @@ -96,7 +99,9 @@ Enabled
-    +   +   +
diff --git a/WebUI/objtypes.aspx b/WebUI/objtypes.aspx index 0ff248d5..d2a06207 100644 --- a/WebUI/objtypes.aspx +++ b/WebUI/objtypes.aspx @@ -16,19 +16,28 @@ var intS = strCook.indexOf("$~"); var intE = strCook.indexOf("~$"); var strPos = strCook.substring(intS + 2, intE); - document.getElementById("propGrid").scrollTop = strPos; + var grid = document.getElementById("propGrid"); + if (grid != null) { + grid.scrollTop = strPos; + } } if (strCook.indexOf("#~") != 0) { var intS = strCook.indexOf("#~"); var intE = strCook.indexOf("~#"); var strPos = strCook.substring(intS + 2, intE); - document.getElementById("stateGrid").scrollTop = strPos; + var grid = document.getElementById("stateGrid"); + if (grid != null) { + grid.scrollTop = strPos; + } } if (strCook.indexOf("@~") != 0) { var intS = strCook.indexOf("@~"); var intE = strCook.indexOf("~@"); var strPos = strCook.substring(intS + 2, intE); - document.getElementById("methodGrid").scrollTop = strPos; + var grid = document.getElementById("methodGrid"); + if (grid != null) { + grid.scrollTop = strPos; + } } } function SetDivPosition() { @@ -109,7 +118,9 @@ Hide Redundant Events  
-    +   +   +
diff --git a/WebUI/scripts.aspx b/WebUI/scripts.aspx index a077f265..5ca3733f 100644 --- a/WebUI/scripts.aspx +++ b/WebUI/scripts.aspx @@ -1,8 +1,8 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="scripts.aspx.cs" Inherits="scripts" EnableEventValidation="false" MaintainScrollPositionOnPostback="true"%> -<%@ Implements Interface="System.Web.UI.IPostBackEventHandler" %> - - - +<%@ Implements Interface="System.Web.UI.IPostBackEventHandler" %> + + + - + +
@@ -77,8 +83,9 @@
- Name: -
Script Processor:
+ Name: +
+ Script Processor:
@@ -94,7 +101,7 @@
Deleted!
      - +
- - + + - - - - - + + + + +