Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
thirdPartyArchiving
Commits
a1d0ef76
Verified
Commit
a1d0ef76
authored
Feb 21, 2019
by
Alexandre Morin
Browse files
Fix Disabled cancel button during import
parent
65b47deb
Changes
1
Hide whitespace changes
Inline
Side-by-side
presentation/maarchRM/Resources/view/medona/archiveTransfer/messageImport.html
View file @
a1d0ef76
...
...
@@ -212,6 +212,7 @@ var zipContent = "";
}
$
(
this
).
attr
(
'
disabled
'
,
true
);
$
(
'
#messageImport_cancel
'
).
attr
(
'
disabled
'
,
true
);
ajax
(
$
(
'
#messageImport_submit
'
),
{
type
:
'
POST
'
,
...
...
@@ -238,6 +239,7 @@ var zipContent = "";
$
(
'
#messageImport_errorDetail
'
).
html
(
arg
);
$
(
'
#messageImport_erreur
'
).
removeClass
(
'
hide
'
);
$
(
'
#messageImport_submit
'
).
attr
(
'
disabled
'
,
false
);
$
(
'
#messageImport_cancel
'
).
attr
(
'
disabled
'
,
false
);
}
...
...
@@ -258,6 +260,7 @@ var zipContent = "";
$
(
'
#messageImport_erreur
'
).
removeClass
(
'
hide
'
);
$
(
'
#messageImport_cancel
'
).
click
();
$
(
'
#messageImport_submit
'
).
attr
(
'
disabled
'
,
false
);
$
(
'
#messageImport_cancel
'
).
attr
(
'
disabled
'
,
false
);
}
...
...
@@ -384,6 +387,7 @@ var zipContent = "";
}
$
(
'
#messageImport_submit
'
).
attr
(
'
disabled
'
,
false
);
$
(
'
#messageImport_cancel
'
).
attr
(
'
disabled
'
,
false
);
},
error
:
function
(
response
)
{
gritter
.
show
(
response
.
responseJSON
.
message
,
response
.
responseJSON
.
status
);
...
...
@@ -401,6 +405,7 @@ var zipContent = "";
$
(
'
#messageImport_erreur
'
).
removeClass
(
'
hide
'
);
$
(
'
#messageImport_cancel
'
).
click
();
$
(
'
#messageImport_submit
'
).
attr
(
'
disabled
'
,
false
);
$
(
'
#messageImport_cancel
'
).
attr
(
'
disabled
'
,
false
);
}
});
}
...
...
@@ -410,7 +415,7 @@ var zipContent = "";
messageFile
:
$
(
'
#messageImport_filesBrowser
'
).
data
(
'
base64
'
),
attachments
:
[],
schema
:
$
(
'
#messageImport_schema option:selected
'
).
val
(),
filename
:
$
(
'
#messageImport_filesBrowser
'
).
data
(
'
filename
'
)
,
filename
:
$
(
'
#messageImport_filesBrowser
'
).
data
(
'
filename
'
)
};
var
attachments
=
$
(
'
#messageImport_attachments
'
).
find
(
'
input
'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment