Subversion Repositories SmartDukaan

Rev

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

Rev 24106 Rev 24766
Line 23... Line 23...
23
						'feature-container');
23
						'feature-container');
24
 
24
 
25
				$(this).blur();
25
				$(this).blur();
26
			});
26
			});
27
 
27
 
28
	$("#submitFeature").live('click', function() {
28
	$("#submitFeature").live(
-
 
29
			'click',
-
 
30
			function() {
29
				var editorData = CKEDITOR.instances['featureEditor'].getData();
31
				var editorData = CKEDITOR.instances['featureEditor'].getData();
30
				console.log(editorData)
32
				console.log(editorData)
31
				var catalogItemid = $('#catalogItemid').val();
33
				var catalogItemid = $('#catalogItemid').val();
32
				var rankPoints = $('#rankPoints').val();
34
				var rankPoints = $('#rankPoints').val();
33
				var featureData = {};
35
				var featureData = {};
Line 42... Line 44...
42
				}
44
				}
43
				if (rankPoints === "") {
45
				if (rankPoints === "") {
44
					alert("Rank Point is required");
46
					alert("Rank Point is required");
45
					return;
47
					return;
46
				}
48
				}
47
				if (editorData === "") {
-
 
48
					alert("Editor Data is required");
-
 
49
					return;
-
 
50
				}
-
 
51
 
49
 
52
				featureData['feature'] = editorData;
50
				featureData['feature'] = editorData;
53
				featureData['catalogItemId'] = $('#catalogItemid').val();
51
				featureData['catalogItemId'] = $('#catalogItemid').val();
54
				featureData['rankPoints'] = $('#rankPoints').val();
52
				featureData['rankPoints'] = $('#rankPoints').val();
55
				console.log(featureData)
53
				console.log(featureData)
Line 85... Line 83...
85
 
83
 
86
function loadFeaturePanel(domId) {
84
function loadFeaturePanel(domId) {
87
 
85
 
88
	doGetAjaxRequestHandler(context + "/featurePanel", function(response) {
86
	doGetAjaxRequestHandler(context + "/featurePanel", function(response) {
89
		$('#' + domId).html(response);
87
		$('#' + domId).html(response);
90
		
88
 
91
		CKEDITOR.replace("featureEditor");
89
		CKEDITOR.replace("featureEditor");
92
		console.log(response);
90
		console.log(response);
93
 
91
 
94
	});
92
	});
95
 
93