Author: jfthomps
Date: Mon Oct 13 18:01:05 2014
New Revision: 1631493

URL: http://svn.apache.org/r1631493
Log:
VCL-780 - combine new reservation and current reservations pages

requests.js: modified editReservationCB: added checks for indefinitelabel and 
indefiniteradio existing before touching them

Modified:
    vcl/trunk/web/js/requests.js

Modified: vcl/trunk/web/js/requests.js
URL: 
http://svn.apache.org/viewvc/vcl/trunk/web/js/requests.js?rev=1631493&r1=1631492&r2=1631493&view=diff
==============================================================================
--- vcl/trunk/web/js/requests.js (original)
+++ vcl/trunk/web/js/requests.js Mon Oct 13 18:01:05 2014
@@ -1416,8 +1416,10 @@ function editReservationCB(data, ioArgs)
                dijit.byId('editResCancelBtn').set('label', _('Cancel'));
                dojo.byId('editrescont').value = data.items.cont;
                dojo.byId('editresid').value = data.items.requestid;
-               dojo.addClass('indefinitelabel', 'disabledlabel');
-               dojo.byId('indefiniteradio').disabled = true;
+               if(dojo.byId('indefinitelabel'))
+                       dojo.addClass('indefinitelabel', 'disabledlabel');
+               if(dojo.byId('indefiniteradio'))
+                       dojo.byId('indefiniteradio').disabled = true;
        }
        else {
                dijit.byId('editResDlgBtn').set('style', 'display: inline');


Reply via email to