Skip to content

Commit

Permalink
CONTENTBOX-1045 #resolve
Browse files Browse the repository at this point in the history
error opening import settings in the geek panel missing js
  • Loading branch information
lmajano committed Aug 3, 2018
1 parent 824b4b6 commit b5af5b8
Show file tree
Hide file tree
Showing 7 changed files with 485 additions and 458 deletions.
Expand Up @@ -649,29 +649,30 @@ function toggleFullScreen() {
* This function takes care of opening a generic configured import dialog and setup all
* the events to submit it.
*/
function importContent() {
function importContent(){
// local id's
var $importForm = $("#importForm");
// open modal for cloning options
openModal($importDialog, 500, 350);
var $importForm = $( "#importForm" );

// open modal for cloning options
openModal( $importDialog, 500, 350 );

// form validator button bar loader
$importForm.validate({
submitHandler: function(form) {
$importForm.find("#importButtonBar").slideUp();
$importForm.find("#importBarLoader").slideDown();
$importForm.validate( {
submitHandler : function( form ){
$importForm.find( "#importButtonBar" ).slideUp();
$importForm.find( "#importBarLoader" ).slideDown();
form.submit();
}
});

// close button
$importForm.find("#closeButton").click(function(e) {
closeModal($importDialog);
$importForm.find( "#closeButton" ).click( function( e ){
closeModal( $importDialog );
return false;
});

// clone button
$importForm.find("#importButton").click(function(e) {
$importForm.find( "#importButton" ).click( function( e ){
$importForm.submit();
});
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b5af5b8

Please sign in to comment.