mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
clean up unused code
This commit is contained in:
parent
6db9a57ead
commit
accda73b93
@ -1,16 +0,0 @@
|
||||
<%# todo remove this file? %>
|
||||
|
||||
<!--
|
||||
<a class='dropdown-trigger black-text attribute-field-dropdown' href='#' data-target="attribute-field-menu-<%= field[:id] %>" data-constrainwidth='false' tabindex="-1">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</a>
|
||||
|
||||
<ul id="attribute-field-menu-<%= field[:id] %>" class='dropdown-content'>
|
||||
<li>
|
||||
<%= link_to "Delete this attribute forever", field,
|
||||
:class => 'red-text',
|
||||
:method => :delete,
|
||||
:data => { :confirm => 'Are you sure? This action cannot be undone!' } %>
|
||||
</li>
|
||||
</ul>
|
||||
-->
|
||||
@ -41,9 +41,6 @@
|
||||
class: "materialize-textarea #{defined?(autocomplete) && autocomplete ? ('autocomplete ' + 'js-autocomplete-' + field[:id].to_s) : ''}",
|
||||
placeholder: placeholder
|
||||
%>
|
||||
<% unless field[:type] == 'name' || field[:type] == 'universe' %>
|
||||
<%= render 'content/form/attribute_field_dropdown', field: field %>
|
||||
<% end %>
|
||||
|
||||
<div class="content-field-link-bar-container"></div>
|
||||
</div>
|
||||
@ -54,7 +51,7 @@
|
||||
$(function() {
|
||||
// This setTimeout is an unfortunate hack to ensure this runs after initializing materialize
|
||||
setTimeout(function() {
|
||||
console.log("Initializing autocomplete for #<%= "#{content_name}_#{field[:label]}" %>");
|
||||
//console.log("Initializing autocomplete for #<%= "#{content_name}_#{field[:label]}" %>");
|
||||
|
||||
$('.js-autocomplete-<%= field[:id].to_s %>').autocomplete({
|
||||
limit: 5,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user