Author: jfthomps
Date: Wed May 6 15:44:46 2009
New Revision: 772315
URL: http://svn.apache.org/viewvc?rev=772315&view=rev
Log:
moved function errorHandler from computers.js and images.js to code.js to allow
new developers to more easily add dojo AJAX calls
Modified:
incubator/vcl/trunk/web/js/code.js
incubator/vcl/trunk/web/js/computers.js
incubator/vcl/trunk/web/js/images.js
Modified: incubator/vcl/trunk/web/js/code.js
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/js/code.js?rev=772315&r1=772314&r2=772315&view=diff
==============================================================================
--- incubator/vcl/trunk/web/js/code.js (original)
+++ incubator/vcl/trunk/web/js/code.js Wed May 6 15:44:46 2009
@@ -261,6 +261,10 @@
alert('error occurred' + error.message + data.responseText);
}
+function errorHandler(data, ioArgs) {
+ alert('Error encountered while processing AJAX callback');
+}
+
function nodeSelect(node) {
var nodeid = node.widgetId;
var nodename = node.title;
Modified: incubator/vcl/trunk/web/js/computers.js
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/js/computers.js?rev=772315&r1=772314&r2=772315&view=diff
==============================================================================
--- incubator/vcl/trunk/web/js/computers.js (original)
+++ incubator/vcl/trunk/web/js/computers.js Wed May 6 15:44:46 2009
@@ -159,10 +159,6 @@
document.body.style.cursor = 'default';
}
-function errorHandler(data, ioArgs) {
- alert('Error encountered while processing AJAX callback');
-}
-
function getCompsButton() {
document.body.style.cursor = 'wait';
var selobj1 = document.getElementById('incomps');
Modified: incubator/vcl/trunk/web/js/images.js
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/js/images.js?rev=772315&r1=772314&r2=772315&view=diff
==============================================================================
--- incubator/vcl/trunk/web/js/images.js (original)
+++ incubator/vcl/trunk/web/js/images.js Wed May 6 15:44:46 2009
@@ -268,10 +268,6 @@
document.body.style.cursor = 'default';
}
-function errorHandler(data, ioArgs) {
- alert('Error encountered while processing AJAX callback');
-}
-
function getImagesButton() {
document.body.style.cursor = 'wait';
var selobj1 = document.getElementById('inimages');