Browse Source

Update docs

avalanche1-patch-2
jlukic 9 years ago
parent
commit
93a9559e74
  1. 1
      server/documents/collections/table.html.eco
  2. 40
      server/documents/hotfix.html.eco

1
server/documents/collections/table.html.eco

@ -188,6 +188,7 @@ themes : ['Default', 'Basic', 'Classic']
<th colspan="3"> <th colspan="3">
Git Repository Git Repository
</th> </th>
</thead>
<tbody> <tbody>
<tr> <tr>
<td class="collapsing"> <td class="collapsing">

40
server/documents/hotfix.html.eco

@ -10,6 +10,15 @@ type : 'Library'
<!-- TEST JS HERE !--> <!-- TEST JS HERE !-->
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$advancedSettingsForms = $('.advanced-settings-form');
$.each($advancedSettingsForms, function (i, value) {
var $form = $(this);
$form.form({debug: true});
console.log($form.form('get value', 'same_name')); // this should log the value of input[name="same_name"], but instead it logs div[data-section="same_name"]
console.log($form.form('get values')); // the value of input[name="same_name"] doesn't show up in the log at all
});
}); });
</script> </script>
@ -18,6 +27,37 @@ $(document).ready(function() {
</style> </style>
<div class="ui container" style="padding-top: 2em;"> <div class="ui container" style="padding-top: 2em;">
<div class="ui small form advanced-settings-form" data-section="same_name">
</div>
<div class="ui small form advanced-settings-form" data-section="some_form">
<div class="field">
<label>A Field</label>
<div class="ui input advanced-settings-field">
<input type="text" name="a_field" value="yo" />
</div>
</div>
<div class="field">
<label>Another Field</label>
<div class="ui selection dropdown advanced-settings-field">
<input type="hidden" name="another_field">
<i class="dropdown icon"></i>
<div class="default text">Blah</div>
<div class="menu">
<div class="above item" data-value="sup">sup</div>
</div>
</div>
</div>
<div class="field">
<div class="ui toggle checkbox advanced-settings-field">
<input type="checkbox" name="same_name" tabindex="0" class="hidden" />
<label>Yo yo</label>
</div>
</div>
</div>
</div>
</div> </div>
</body> </body>
Loading…
Cancel
Save