js: select2 event escape (ie)
This commit is contained in:
parent
17004c2a04
commit
1c9e0a214e
|
@ -99,12 +99,12 @@ var global_load = null;
|
|||
$(where + " form.tableForm tbody").each(function(evt) {
|
||||
var that = this;
|
||||
var newRow = $(".new", this).html();
|
||||
$(that).change(function(e) {
|
||||
$(that).on('change',function(e) {
|
||||
stopLoad(e);
|
||||
tosave = true;
|
||||
$("tr", that).each(function(evt) {
|
||||
see = true;
|
||||
$(":input:not([ type = 'hidden' ] )", this).each(function() {
|
||||
$(":input:not([ type = 'hidden' ] ):not(.select2-focusser):not(.select2-input)", this).each(function() {
|
||||
if (see) {
|
||||
see = $(this).val() == '';
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ var global_load = null;
|
|||
|
||||
save = true;
|
||||
that2 = this;
|
||||
$(":input:not([ type = 'hidden' ] )", this).each(function() {
|
||||
$(":input:not([ type = 'hidden' ] ):not(.select2-focusser):not(.select2-input)", this).each(function() {
|
||||
if (save && !$(that2).hasClass("new")) {
|
||||
save = $(this).val() != '';
|
||||
}
|
||||
|
@ -172,6 +172,11 @@ var global_load = null;
|
|||
//$(where+" form label.has-error").parent(".form-group").addClass("has-error")
|
||||
}
|
||||
function setContent(data, back, tab, backignore) {
|
||||
title = data.split('<title>')[1].split('</title>')[0];
|
||||
if (title.trim().length > 0) {
|
||||
document.title = title.trim();
|
||||
}
|
||||
|
||||
alert = data.split('<!-- alert -->')[1].split('<!-- /alert -->')[0];
|
||||
$('#alert').removeClass('old');
|
||||
if (alert.trim().length > 0) {
|
||||
|
|
Loading…
Reference in New Issue