Subversion Repositories SmartDukaan

Rev

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

Rev 7471 Rev 7585
Line 28... Line 28...
28
					"OK": function() { 
28
					"OK": function() { 
29
						inputContent = tinyMCE.activeEditor.getContent();
29
						inputContent = tinyMCE.activeEditor.getContent();
30
						if (inputContent == "" || inputContent == '<p><span style="cursor:pointer;color:blue">Click here to Edit</span></p>'){
30
						if (inputContent == "" || inputContent == '<p><span style="cursor:pointer;color:blue">Click here to Edit</span></p>'){
31
							inputContent = '<span style="cursor:pointer;color:blue">Click here to Edit</span>';
31
							inputContent = '<span style="cursor:pointer;color:blue">Click here to Edit</span>';
32
						}
32
						}
33
						$('#expertReviewHtml').val(inputContent);
33
						$('#erhtml').val(inputContent);
34
						clicked.html(inputContent);
34
						clicked.html(inputContent);
-
 
35
						$("#indexid").val(clicked.closest('tr').find('td').html());
35
						$(this).dialog("close"); 
36
						$(this).dialog("close");
-
 
37
						$("#changeContent").submit();
36
					}
38
					}
37
				},
39
				},
38
				modal: true});
40
				modal: true});
39
			tinymce.init({
41
			tinymce.init({
40
	    		selector: "textarea",
42
	    		selector: "textarea",
Line 172... Line 174...
172
			</td>
174
			</td>
173
		</tr>
175
		</tr>
174
		#end
176
		#end
175
	</table>
177
	</table>
176
</div>
178
</div>
-
 
179
<form id="changeContent" method="POST" action="$entityId!change" style="display:none">
-
 
180
					<input id="indexid" type="hidden" style="width:50px" name="index"/>
-
 
181
					<input  id="erhtml" type="hidden" name="expertReviewHtml"/>
-
 
182
					<input type="submit" value="Move"/>
-
 
183
</form>
177
</body>
184
</body>
178
</html>
185
</html>
179
186