Subversion Repositories SmartDukaan

Rev

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

Rev 24766 Rev 24798
Line 2... Line 2...
2
 
2
 
3
	$(".feature").live('click', function() {
3
	$(".feature").live('click', function() {
4
		loadFeaturePanel("main-content");
4
		loadFeaturePanel("main-content");
5
	});
5
	});
6
 
6
 
-
 
7
	/*
7
	$("#feature-paginated .next").live(
8
	 * $("#feature-paginated .next").live( 'click', function() {
8
			'click',
-
 
9
			function() {
-
 
10
				loadPaginatedNextItems('/getPaginatedfeature', null,
9
	 * loadPaginatedNextItems('/getPaginatedfeature', null, 'feature-paginated',
11
						'feature-paginated', 'feature-table',
10
	 * 'feature-table', 'feature-container');
12
						'feature-container');
-
 
13
 
11
	 * 
14
				$(this).blur();
12
	 * $(this).blur(); });
15
			});
13
	 * 
16
 
-
 
17
	$("#feature-paginated .previous").live(
14
	 * $("#feature-paginated .previous").live( 'click', function() {
18
			'click',
-
 
19
			function() {
-
 
20
 
15
	 * 
21
				loadPaginatedPreviousItems('/getPaginatedfeature', null,
16
	 * loadPaginatedPreviousItems('/getPaginatedfeature', null,
22
						'feature-paginated', 'feature-table',
17
	 * 'feature-paginated', 'feature-table', 'feature-container');
23
						'feature-container');
-
 
24
 
18
	 * 
25
				$(this).blur();
19
	 * $(this).blur(); });
26
			});
20
	 */
27
 
21
 
28
	$("#submitFeature").live(
22
	$("#submitFeature").live(
29
			'click',
23
			'click',
30
			function() {
24
			function() {
31
				var editorData = CKEDITOR.instances['featureEditor'].getData();
25
				var editorData = CKEDITOR.instances['featureEditor'].getData();
Line 77... Line 71...
77
		console.log(catalogItemId);
71
		console.log(catalogItemId);
78
		console.log(feature);
72
		console.log(feature);
79
 
73
 
80
	});
74
	});
81
 
75
 
-
 
76
	$(".deleteCatalogranking")
-
 
77
			.live(
-
 
78
					'click',
-
 
79
					function() {
-
 
80
						if (confirm("Are you sure you want to Remove the Entry") == true) {
-
 
81
							tagid = $(this).data('tagid');
-
 
82
							console.log(tagid);
-
 
83
							doDeleteAjaxRequestHandler(context
-
 
84
									+ "/removeFeature?id="
-
 
85
									+ tagid, function(response) {
-
 
86
								if (response == 'true') {
-
 
87
									alert("successfully Removed");
-
 
88
									loadFeaturePanel("main-content");
-
 
89
								}
-
 
90
 
-
 
91
							});
-
 
92
						}
-
 
93
 
-
 
94
					});
82
});
95
});
83
 
96
 
84
function loadFeaturePanel(domId) {
97
function loadFeaturePanel(domId) {
85
 
98
 
86
	doGetAjaxRequestHandler(context + "/featurePanel", function(response) {
99
	doGetAjaxRequestHandler(context + "/featurePanel", function(response) {
87
		$('#' + domId).html(response);
100
		$('#' + domId).html(response);
88
 
101
 
89
		CKEDITOR.replace("featureEditor");
102
		CKEDITOR.replace("featureEditor");
90
		console.log(response);
-
 
91
 
103
	
92
	});
104
	});
93
 
105
 
94
}
106
}