fixed ingredient bug; added button
This commit is contained in:
parent
8811109351
commit
c0d43171a4
@ -11,6 +11,11 @@
|
|||||||
return this.each(function() {
|
return this.each(function() {
|
||||||
var options = $.extend({}, defaultOptions, opts);
|
var options = $.extend({}, defaultOptions, opts);
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
||||||
|
if ($this.data(pluginName)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this.data(pluginName, {options: options});
|
$this.data(pluginName, {options: options});
|
||||||
|
|
||||||
var $inputGroup = $('<div class="input-group" />');
|
var $inputGroup = $('<div class="input-group" />');
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
<p>No Ingredients</p>
|
<p>No Ingredients</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
||||||
|
<%= link_to 'New Ingredient', new_ingredient_path, class: 'btn btn-default' %>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
<table class="table table-condensed table-hover">
|
<table class="table table-condensed table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user