Convert remaining eval()-ish items in repo
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2586 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -173,9 +173,9 @@ function ShowTip(event, tooltipID, linkID)
|
|||||||
var docX = event.clientX + window.pageXOffset;
|
var docX = event.clientX + window.pageXOffset;
|
||||||
var docY = event.clientY + window.pageYOffset;
|
var docY = event.clientY + window.pageYOffset;
|
||||||
|
|
||||||
var showCommand = "ReallyShowTip('" + tooltipID + "', '" + linkID + "', " + docX + ", " + docY + ")";
|
tooltipTimer = setTimeout(function () {
|
||||||
|
ReallyShowTip(tooltipID, linkID, docX, docY);
|
||||||
tooltipTimer = setTimeout(showCommand, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ReallyShowTip(tooltipID, linkID, docX, docY)
|
function ReallyShowTip(tooltipID, linkID, docX, docY)
|
||||||
@@ -285,7 +285,7 @@ function NDOnResize()
|
|||||||
{ clearTimeout(resizeTimer); };
|
{ clearTimeout(resizeTimer); };
|
||||||
|
|
||||||
resizeTimer = setTimeout(NDDoResize, 250);
|
resizeTimer = setTimeout(NDDoResize, 250);
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
function NDDoResize()
|
function NDDoResize()
|
||||||
@@ -448,6 +448,7 @@ function SearchPanel(name, mode, resultsPath)
|
|||||||
*/
|
*/
|
||||||
this.OnSearchFieldChange = function()
|
this.OnSearchFieldChange = function()
|
||||||
{
|
{
|
||||||
|
var t = this;
|
||||||
if (this.keyTimeout)
|
if (this.keyTimeout)
|
||||||
{
|
{
|
||||||
clearTimeout(this.keyTimeout);
|
clearTimeout(this.keyTimeout);
|
||||||
@@ -460,7 +461,9 @@ function SearchPanel(name, mode, resultsPath)
|
|||||||
{
|
{
|
||||||
if (searchValue != "")
|
if (searchValue != "")
|
||||||
{
|
{
|
||||||
this.keyTimeout = setTimeout(this.name + ".Search()", this.keyTimeoutLength);
|
this.keyTimeout = setTimeout(function () {
|
||||||
|
t.name.Search();
|
||||||
|
}, this.keyTimeoutLength);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -624,6 +627,7 @@ function SearchPanel(name, mode, resultsPath)
|
|||||||
*/
|
*/
|
||||||
this.Activate = function(isActive, ignoreDeactivateDelay)
|
this.Activate = function(isActive, ignoreDeactivateDelay)
|
||||||
{
|
{
|
||||||
|
var t = this;
|
||||||
// We want to ignore isActive being false while the results window is open.
|
// We want to ignore isActive being false while the results window is open.
|
||||||
if (isActive || (this.mode == "HTML" && this.DOMPopupSearchResultsWindow().style.display == "block"))
|
if (isActive || (this.mode == "HTML" && this.DOMPopupSearchResultsWindow().style.display == "block"))
|
||||||
{
|
{
|
||||||
@@ -642,7 +646,9 @@ function SearchPanel(name, mode, resultsPath)
|
|||||||
}
|
}
|
||||||
else if (!ignoreDeactivateDelay)
|
else if (!ignoreDeactivateDelay)
|
||||||
{
|
{
|
||||||
this.inactivateTimeout = setTimeout(this.name + ".InactivateAfterTimeout()", this.inactivateTimeoutLength);
|
this.inactivateTimeout = setTimeout(function () {
|
||||||
|
t.name.InactivateAfterTimeout();
|
||||||
|
}, this.inactivateTimeoutLength);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user