Skip to content

Commit

Permalink
minor changes to make mozilla validator happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutton committed May 13, 2014
1 parent a02c4c9 commit 6a1bf0e
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 73 deletions.
3 changes: 0 additions & 3 deletions common/js/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,6 @@ noojeeClick
clickElement.setAttribute("style", "cursor:pointer;");
clickElement.addEventListener("click", theApp.handlers.onDialHandler,
true);
/*
* a.addEventListener("mouseover", numInfo, false);
*/
clickElement.appendChild(text);
clickElement.setAttribute("PhoneNo", match[0]);

Expand Down
2 changes: 1 addition & 1 deletion firefox/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<property name="build" location="build" />
<property name="dist" location="dist" />

<property name="version" value="2.0.7" />
<property name="version" value="2.0.8" />
<property name="maxMozillaFirefoxVersion" value="32.0" />
<property name="maxLocalFirefoxVersion" value="45.0" />
<property name="maxClientFirefoxVersion" value="45.0" />
Expand Down
143 changes: 74 additions & 69 deletions firefox/src/content/quickpick.js
Original file line number Diff line number Diff line change
@@ -1,85 +1,90 @@
noojeeClick.ns(function() { with (noojeeClick.LIB) {

theApp.quickpicks =
noojeeClick.ns(function()
{

this.reloadQuickPicks = function()
with (noojeeClick.LIB)
{
setBoolValue("clidquickpick.reload", true);
}

this.retrieveQuickPicks = function()
{
if (getBoolValue("clidquickpick.reload"))
theApp.quickpicks =
{
setBoolValue("clidquickpick.reload", false);
var quickPickUrl = getValue("clidquickpick.url");

ns_debug("quickpicks", "retrieving CLID quickpicks: url=" + quickPickUrl);
var xmlhttp;
xmlhttp = new XMLHttpRequest();

// setup the call back handler
xmlhttp.onreadystatechange = function()

reloadQuickPicks : function()
{
try
setBoolValue("clidquickpick.reload", true);
},

retrieveQuickPicks : function()
{
if (getBoolValue("clidquickpick.reload"))
{
ns_debug("quickpicks", "readstate changed state=" + xmlhttp.readyState);

if (xmlhttp.readyState == 4)
setBoolValue("clidquickpick.reload", false);
var quickPickUrl = getValue("clidquickpick.url");

ns_debug("quickpicks", "retrieving CLID quickpicks: url=" + quickPickUrl);
var xmlhttp;
xmlhttp = new XMLHttpRequest();

// setup the call back handler
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.status == 200)
try
{
// We have a success so lets load the pick list and save
// it to properties.

var xmlResponse = xmlhttp.responseXML;
ns_debug("quickpicks", "quickpicks recieved: data=" + xmlResponse);

var quickPicks = xmlResponse.getElementsByTagName('clid-quick-pick');

var count = quickPicks.length;
ns_debug("quickpicks", "quickpicks count: " + count);
setValue("clidquickpick.count", count);

for ( var i = 0; i < count; i++)
ns_debug("quickpicks", "readstate changed state=" + xmlhttp.readyState);

if (xmlhttp.readyState == 4)
{
var name = quickPicks[i].getAttribute("name");
var clid = quickPicks[i].getAttribute("clid");

ns_debug("quickpicks", "received quickpick: " + name + ", " + clid);
setValue("clidquickpick.pick-" + i + "-name", name);
setValue("clidquickpick.pick-" + i + "-clid", clid);
if (xmlhttp.status == 200)
{
// We have a success so lets load the pick list and
// save
// it to properties.

var xmlResponse = xmlhttp.responseXML;
ns_debug("quickpicks", "quickpicks recieved: data=" + xmlResponse);

var quickPicks = xmlResponse.getElementsByTagName('clid-quick-pick');

var count = quickPicks.length;
ns_debug("quickpicks", "quickpicks count: " + count);
setValue("clidquickpick.count", count);

for ( var i = 0; i < count; i++)
{
var name = quickPicks[i].getAttribute("name");
var clid = quickPicks[i].getAttribute("clid");

ns_debug("quickpicks", "received quickpick: " + name + ", " + clid);
setValue("clidquickpick.pick-" + i + "-name", name);
setValue("clidquickpick.pick-" + i + "-clid", clid);
}
}
else
{
ns_debug("quickpicks", "An error occured attempting to retrieve the CLID Quick Pick list. " + xmlhttp.responseXML);
}

ns_debug("quickpicks", "exiting state=" + xmlhttp.readyState);
// Flag that the menu needs to be reloaded.
setBoolValue("clidquickpick.reset", "true");
}
}
else
} catch (e)
{
ns_debug("quickpicks", "An error occured attempting to retrieve the CLID Quick Pick list. " + xmlhttp.responseXML);
ns_debug("quickpicks", "exception " + e);
}

ns_debug("quickpicks", "exiting state=" + xmlhttp.readyState);
// Flag that the menu needs to be reloaded.
setBoolValue("clidquickpick.reset", "true");
}
} catch (e)
{
ns_debug("quickpicks", "exception " + e);
};

ns_debug("quickpicks", "calling open on url");
xmlhttp.open("GET", quickPickUrl, true);

// xmlhttp.open("GET", quickPickUrl + ((/\?/).test(url) ? "&" : "?")
// +
// (new Date()).getTime(), true);
// xmlhttp.withCredentials = "true";
ns_debug("quickpicks", "calling send on url");
xmlhttp.send();
ns_debug("quickpicks", "calling send complete");
}
};

ns_debug("quickpicks", "calling open on url");
xmlhttp.open("GET", quickPickUrl, true);

// xmlhttp.open("GET", quickPickUrl + ((/\?/).test(url) ? "&" : "?") +
// (new Date()).getTime(), true);
// xmlhttp.withCredentials = "true";
ns_debug("quickpicks", "calling send on url");
xmlhttp.send();
ns_debug("quickpicks", "calling send complete");
}
};


};


};

}});

0 comments on commit 6a1bf0e

Please sign in to comment.