Subversion Repositories SmartDukaan

Rev

Rev 24798 | Rev 27754 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24798 Rev 25393
Line 1... Line 1...
1
$(function() {
1
$(function() {
2
 
2
 
3
	$(".feature").live('click', function() {
3
	$(".feature").live('click', function() {
4
		loadFeaturePanel("main-content");
4
		loadFeaturePanel("main-content");
5
	});
5
	});
-
 
6
	
-
 
7
	$(".content").on('click', function() {
-
 
8
		loadContentPanel("main-content");
-
 
9
	});
6
 
10
 
7
	/*
11
	/*
8
	 * $("#feature-paginated .next").live( 'click', function() {
12
	 * $("#feature-paginated .next").live( 'click', function() {
9
	 * loadPaginatedNextItems('/getPaginatedfeature', null, 'feature-paginated',
13
	 * loadPaginatedNextItems('/getPaginatedfeature', null, 'feature-paginated',
10
	 * 'feature-table', 'feature-container');
14
	 * 'feature-table', 'feature-container');
Line 93... Line 97...
93
 
97
 
94
					});
98
					});
95
});
99
});
96
 
100
 
97
function loadFeaturePanel(domId) {
101
function loadFeaturePanel(domId) {
98
 
-
 
99
	doGetAjaxRequestHandler(context + "/featurePanel", function(response) {
102
	doGetAjaxRequestHandler(context + "/featurePanel", function(response) {
100
		$('#' + domId).html(response);
103
		$('#' + domId).html(response);
101
 
-
 
102
		CKEDITOR.replace("featureEditor");
104
		CKEDITOR.replace("featureEditor");
103
	
-
 
104
	});
105
	});
105
 
106
}
-
 
107
function loadContentPanel(domId) {
-
 
108
	doGetAjaxRequestHandler(context + "/content/index", function(response) {
-
 
109
		$('#' + domId).html(response);
-
 
110
	});
106
}
111
}