Commit 5d91b673 authored by David Stutz's avatar David Stutz

Updated enable, disable demo.

parent f7cbd26c
...@@ -1290,6 +1290,7 @@ $("#multiselect").multiselect('dataprovider', data); ...@@ -1290,6 +1290,7 @@ $("#multiselect").multiselect('dataprovider', data);
<option value="pepperoni">Pepperoni</option> <option value="pepperoni">Pepperoni</option>
<option value="onions">Onions</option> <option value="onions">Onions</option>
</select> </select>
<button id="example35-enable" class="btn btn-default">Enable</button>
<button id="example35-disable" class="btn btn-default">Disable</button> <button id="example35-disable" class="btn btn-default">Disable</button>
</div> </div>
</td> </td>
...@@ -1312,6 +1313,7 @@ $(&quot;#multiselect&quot;).multiselect('dataprovider', data); ...@@ -1312,6 +1313,7 @@ $(&quot;#multiselect&quot;).multiselect('dataprovider', data);
<option value="onions">Onions</option> <option value="onions">Onions</option>
</select> </select>
<button id="example36-enable" class="btn btn-default">Enable</button> <button id="example36-enable" class="btn btn-default">Enable</button>
<button id="example36-disable" class="btn btn-default">Disable</button>
</div> </div>
</td> </td>
</tr> </tr>
......
...@@ -1186,6 +1186,9 @@ templates: { ...@@ -1186,6 +1186,9 @@ templates: {
}); });
$('#example35').multiselect(); $('#example35').multiselect();
$('#example35-enable').on('click', function() {
$('#example35').multiselect('enable');
});
$('#example35-disable').on('click', function() { $('#example35-disable').on('click', function() {
$('#example35').multiselect('disable'); $('#example35').multiselect('disable');
}); });
...@@ -1193,6 +1196,9 @@ templates: { ...@@ -1193,6 +1196,9 @@ templates: {
$('#example36').multiselect(); $('#example36').multiselect();
$('#example36-enable').on('click', function() { $('#example36-enable').on('click', function() {
$('#example36').multiselect('enable'); $('#example36').multiselect('enable');
});
$('#example36-disable').on('click', function() {
$('#example36').multiselect('disable');
}); });
}); });
</script> </script>
...@@ -1350,6 +1356,7 @@ $(&quot;#multiselect&quot;).multiselect('dataprovider', data); ...@@ -1350,6 +1356,7 @@ $(&quot;#multiselect&quot;).multiselect('dataprovider', data);
<option value="pepperoni">Pepperoni</option> <option value="pepperoni">Pepperoni</option>
<option value="onions">Onions</option> <option value="onions">Onions</option>
</select> </select>
<button id="example35-enable" class="btn btn-default">Enable</button>
<button id="example35-disable" class="btn btn-default">Disable</button> <button id="example35-disable" class="btn btn-default">Disable</button>
</div> </div>
</td> </td>
...@@ -1372,6 +1379,7 @@ $(&quot;#multiselect&quot;).multiselect('dataprovider', data); ...@@ -1372,6 +1379,7 @@ $(&quot;#multiselect&quot;).multiselect('dataprovider', data);
<option value="onions">Onions</option> <option value="onions">Onions</option>
</select> </select>
<button id="example36-enable" class="btn btn-default">Enable</button> <button id="example36-enable" class="btn btn-default">Enable</button>
<button id="example36-disable" class="btn btn-default">Disable</button>
</div> </div>
</td> </td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment