Skip to content
Snippets Groups Projects
Commit 4a68e95f authored by Chris Hallberg's avatar Chris Hallberg
Browse files

AjaxTabs now uses url to create ajax url.

parent 9ebaaa10
Branches
Tags
No related merge requests found
...@@ -165,8 +165,10 @@ function registerTabEvents() { ...@@ -165,8 +165,10 @@ function registerTabEvents() {
function ajaxLoadTab(tabid) { function ajaxLoadTab(tabid) {
var id = $('.hiddenId')[0].value; var id = $('.hiddenId')[0].value;
var parts = document.URL.split(path+"/");
var urlparts = parts[1].split("/");
$.ajax({ $.ajax({
url: path + '/Record/'+id+'/AjaxTab', url: path + '/' + urlparts[0] + '/'+id+'/AjaxTab',
type: 'POST', type: 'POST',
data: {tab: tabid}, data: {tab: tabid},
success: function(data) { success: function(data) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment