app/views/tiny_mce/links.erb in muck-contents-3.1.4 vs app/views/tiny_mce/links.erb in muck-contents-3.1.5
- old
+ new
@@ -290,13 +290,12 @@
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
</div>
</div>
</form>
-<% content_for :head do -%>
+<% content_for :javascript do -%>
<%= javascript_include_tag 'tiny_mce/plugins/mucklink/js/functions.js' -%>
-<% end -%>
<script language="javascript" type="text/javascript">
jQuery(document).ready(function() {
var path = '<%=links_for_content_path%>';
jQuery.getJSON(path, function(json){
if (json.length > 0){
@@ -315,6 +314,7 @@
}
});
}
});
});
-</script>
+</script>
+<% end -%>
\ No newline at end of file