- Make the multi object form perform an auto submit when the value is changed.
- Add multiple object select checkbox that was missing in the list item subtemplate. Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
0a05c87c9c
commit
eceb3ed877
@@ -24,6 +24,14 @@ App.tagResultTemplate = function (tag) {
|
||||
return $tag;
|
||||
}
|
||||
|
||||
App.prototype.setupAutoSubmit = function () {
|
||||
$('.select-auto-submit').change(function () {
|
||||
if ($(this).val()) {
|
||||
this.form.submit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
App.prototype.setupScrollView = function () {
|
||||
$('.scrollable').scrollview();
|
||||
}
|
||||
@@ -36,6 +44,14 @@ App.prototype.setupTableSelector = function () {
|
||||
});
|
||||
}
|
||||
|
||||
App.prototype.setupItemsSelector = function () {
|
||||
$('.check-all').click(function(e) {
|
||||
var parent = $(e.target).closest('.well');
|
||||
var checked = $(e.target).prop('checked');
|
||||
$('.panel-item input:checkbox', parent).prop('checked', checked);
|
||||
});
|
||||
}
|
||||
|
||||
App.prototype.setupWindowPopUp = function () {
|
||||
$('a.new_window').click(function(event) {
|
||||
event.preventDefault();
|
||||
@@ -227,7 +243,11 @@ jQuery(document).ready(function() {
|
||||
|
||||
app.setupScrollView();
|
||||
|
||||
app.setupItemsSelector();
|
||||
|
||||
app.setupTableSelector();
|
||||
|
||||
app.setupWindowPopUp();
|
||||
|
||||
app.setupAutoSubmit();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user