| | |
| | | }, |
| | | error: function() { |
| | | reportError('Ajax Request was not successful.'+pagename); |
| | | }, |
| | | } |
| | | }); |
| | | setTimeout( "loadContentRefresh('"+pagename+"&refresh="+document.getElementById('refreshinterval').value+"')", document.getElementById('refreshinterval').value*1000 ); |
| | | } |
| | |
| | | }, |
| | | error: function() { |
| | | reportError('Ajax Request was not successful.'+module); |
| | | }, |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | }, |
| | | error: function() { |
| | | reportError('Ajax Request was not successful.110'); |
| | | }, |
| | | } |
| | | }); |
| | | /* |
| | | if(redirect != '') { |
| | |
| | | error: function(jqXHR, textStatus, errorThrown) { |
| | | var parts = jqXHR.responseText.split(':'); |
| | | reportError('Ajax Request was not successful. 111'); |
| | | }, |
| | | } |
| | | }); |
| | | /* |
| | | if(redirect != '') { |
| | |
| | | error: function(jqXHR, textStatus, errorThrown) { |
| | | var parts = jqXHR.responseText.split(':'); |
| | | reportError('Ajax Request was not successful. 111'); |
| | | }, |
| | | } |
| | | }); |
| | | } |
| | | } |
| | |
| | | }, |
| | | error: function() { |
| | | reportError('Ajax Request was not successful. 113'); |
| | | }, |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | }, |
| | | error: function() { |
| | | reportError('Ajax Request was not successful. 114'); |
| | | }, |
| | | } |
| | | }); |
| | | |
| | | loadMenus(); |
| | |
| | | |
| | | function setFocus() { |
| | | try { |
| | | document.pageForm.username.focus(); |
| | | jQuery('form#pageForm').find('input[name="username"]').focus(); |
| | | } catch (e) { |
| | | } |
| | | } |
| | |
| | | }, |
| | | error: function() { |
| | | reportError('Ajax Request was not successful. 115'); |
| | | }, |
| | | } |
| | | }); |
| | | |
| | | var topNavObject = jQuery.ajax({ type: "GET", |
| | |
| | | }, |
| | | error: function(o) { |
| | | reportError('Ajax Request was not successful. 116'); |
| | | }, |
| | | } |
| | | }); |
| | | |
| | | } |
| | |
| | | //document.forms[0].next_tab.value = tab; |
| | | document.pageForm.next_tab.value = tab; |
| | | |
| | | var id = document.pageForm.id.value; |
| | | var idel = jQuery('form#pageForm').find('[name="id"]'); |
| | | var id = null; |
| | | if(idel.length > 0) id = idel.val(); |
| | | if(tabChangeDiscard == 'y') { |
| | | if(id && (pageFormChanged == false || window.confirm(tabChangeDiscardTxt))) { |
| | | if((idel.length < 1 || id) && (pageFormChanged == false || window.confirm(tabChangeDiscardTxt))) { |
| | | var next_tab = tab; |
| | | loadContent(target, {'next_tab': next_tab, 'id': id}); |
| | | if(id) loadContent(target, {'next_tab': next_tab, 'id': id}); |
| | | else loadContent(target, {'next_tab': next_tab}); |
| | | } else { |
| | | return false; |
| | | } |
| | |
| | | submitForm('pageForm', target); |
| | | } else { |
| | | var next_tab = tab; |
| | | var id = document.pageForm.id.value; |
| | | loadContent(target, {'next_tab': next_tab, 'id': id}); |
| | | if(id) loadContent(target, {'next_tab': next_tab, 'id': id}); |
| | | else loadContent(target, {'next_tab': next_tab}); |
| | | } |
| | | } else { |
| | | submitForm('pageForm',target); |
| | |
| | | }, |
| | | error: function() { |
| | | reportError('Ajax Request was not successful. 118'); |
| | | }, |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | }, |
| | | error: function() { |
| | | reportError('Ajax Request was not successful. 119'); |
| | | }, |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | }, |
| | | error: function() { |
| | | reportError('Session expired. Please login again.'); |
| | | }, |
| | | } |
| | | }); |
| | | //setTimeout( keepalive, 1000000 ); |
| | | } |
| | |
| | | newPWField.attr('id', passwordFieldID).val(pword).trigger('keyup'); |
| | | } |
| | | |
| | | var funcDisableClick = function(e) { e.preventDefault(); return false; }; |
| | | |
| | | function checkPassMatch(pwField1,pwField2){ |
| | | var rpass = jQuery('#'+pwField2).val(); |
| | | var npass = jQuery('#'+pwField1).val(); |
| | |
| | | jQuery('#confirmpasswordOK').hide(); |
| | | jQuery('#confirmpasswordError').show(); |
| | | jQuery('button.positive').attr('disabled','disabled'); |
| | | jQuery('.tabbox_tabs ul li a').attr('onclick','return false;'); |
| | | jQuery('.tabbox_tabs ul li a').each(function() { |
| | | var $this = $(this); |
| | | $this.data('saved_onclick', $this.attr('onclick')); |
| | | $this.removeAttr('onclick'); |
| | | $this.click(funcDisableClick); |
| | | }); |
| | | return false; |
| | | } else { |
| | | jQuery('#confirmpasswordError').hide(); |
| | | jQuery('#confirmpasswordOK').show(); |
| | | jQuery('button.positive').removeAttr('disabled'); |
| | | jQuery('.tabbox_tabs ul li a').removeAttr('onclick'); |
| | | jQuery('.tabbox_tabs ul li a').each(function() { |
| | | var $this = $(this); |
| | | $this.unbind('click', funcDisableClick); |
| | | if($this.data('saved_onclick') && !$this.attr('onclick')) $this.attr('onclick', $this.data('saved_onclick')); |
| | | }); |
| | | } |
| | | } |
| | | |