mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Rebuild JS files
This commit is contained in:
parent
ca6e981f29
commit
bb3603acd3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
6
public/css/built.css
vendored
6
public/css/built.css
vendored
File diff suppressed because one or more lines are too long
2
public/css/built.public.css
vendored
2
public/css/built.public.css
vendored
File diff suppressed because one or more lines are too long
2
public/css/fullcalendar.css
vendored
2
public/css/fullcalendar.css
vendored
File diff suppressed because one or more lines are too long
8
public/js/Chart.min.js
vendored
8
public/js/Chart.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
public/js/card.min.js
vendored
2
public/js/card.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
38
public/js/grapesjs.min.js
vendored
38
public/js/grapesjs.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
6
public/js/select2.min.js
vendored
6
public/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
10
public/js/tablesorter.min.js
vendored
10
public/js/tablesorter.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1187,17 +1187,12 @@ function escapeRegExp(str) {
|
||||
}
|
||||
|
||||
function firstJSONError(json) {
|
||||
json = json['errors'];
|
||||
for (var key in json) {
|
||||
if ( ! json.hasOwnProperty(key)) {
|
||||
continue;
|
||||
}
|
||||
var item = json[key];
|
||||
for (var subKey in item) {
|
||||
if ( ! item.hasOwnProperty(subKey)) {
|
||||
continue;
|
||||
}
|
||||
return item[subKey];
|
||||
}
|
||||
return json[key] + '';
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -265,23 +265,12 @@
|
||||
|
||||
var error = '{{ trans('texts.error_refresh_page') }}';
|
||||
if (data) {
|
||||
error = firstPaymentError(data.responseJSON);
|
||||
error = firstJSONError(data.responseJSON);
|
||||
}
|
||||
|
||||
swal({title: '{{ trans('texts.an_error_occurred') }}', text: error});
|
||||
}
|
||||
|
||||
function firstPaymentError(json) {
|
||||
json = json['errors'];
|
||||
for (var key in json) {
|
||||
if ( ! json.hasOwnProperty(key)) {
|
||||
continue;
|
||||
}
|
||||
return json[key] + '';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
function submitAction(action) {
|
||||
$('#action').val(action);
|
||||
$('.main-form').submit();
|
||||
|
Loading…
Reference in New Issue
Block a user