Skip to content

Commit

Permalink
Revert "Fixed: Not possible to 'publish' new Views"
Browse files Browse the repository at this point in the history
This reverts commit 421a08e.
  • Loading branch information
zackkatz committed Mar 18, 2015
1 parent 421a08e commit ca5995b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 5 additions & 3 deletions assets/js/admin-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
.on('click', 'a[href="#gv_start_fresh"]', vcfg.startFresh)

// when saving the View, try to create form before proceeding
.on('click', '#publish, #save-post', vcfg.processFormSubmit )
.on('submit', '#post', vcfg.processFormSubmit)

// Hover overlay show/hide
.on('click', ".gv-view-types-hover", vcfg.selectTemplateHover)
Expand Down Expand Up @@ -1243,7 +1243,9 @@

// make sure the "slow" browsers did append all the serialized data to the form
setTimeout( function() {
$( e.target ).data( 'gv-valid', true ).click();

$( e.target ).data( 'gv-valid', true ).submit();

}, 101 );

return false;
Expand Down Expand Up @@ -1288,7 +1290,7 @@
.append(response);

// Continue submitting the form, since we preventDefault() above
$(e.target).click();
$(e.target).submit();

} else {

Expand Down
Loading

0 comments on commit ca5995b

Please sign in to comment.