| | |
| | | }, |
| | | 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(); |
| | |
| | | }, |
| | | 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'); |
| | | }, |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | function changeTab(tab,target) { |
| | | function changeTab(tab,target,force) { |
| | | //document.forms[0].next_tab.value = tab; |
| | | document.pageForm.next_tab.value = tab; |
| | | |
| | | var idel = jQuery('form#pageForm').find('[name="id"]'); |
| | | var id = null; |
| | | if(idel.length > 0) id = idel.val(); |
| | | if(tabChangeDiscard == 'y') { |
| | | if(tabChangeDiscard == 'y' && !force) { |
| | | if((idel.length < 1 || id) && (pageFormChanged == false || window.confirm(tabChangeDiscardTxt))) { |
| | | var next_tab = tab; |
| | | if(id) loadContent(target, {'next_tab': next_tab, 'id': id}); |
| | |
| | | }, |
| | | 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 ); |
| | | } |
| | |
| | | var template = jQuery(this).siblings(':input'); |
| | | template.insertAtCaret(placeholderText); |
| | | }); |
| | | |
| | | jQuery('.addPlaceholderContent').live("click", function(){ |
| | | var placeholderContentText = jQuery(this).find('.addPlaceholderContent').text(); |
| | | var template2 = jQuery(this).siblings(':input'); |
| | | template2.insertAtCaret(placeholderContentText); |
| | | }); |
| | | |
| | | jQuery.fn.extend({ |
| | | insertAtCaret: function(myValue){ |