Skip to content

Commit

Permalink
further UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunsupul committed Dec 14, 2018
1 parent 2c4e3dc commit a8b8990
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.txt
Expand Up @@ -15,6 +15,7 @@ Front-end editing and creation suite.
== Changelog ==
= 1.0.5
* Fix for Aesop Gallery component
* Fix for Status saving and component insertion

= 1.0.4
* Fix for draft posts when preview setting is required
Expand Down
10 changes: 7 additions & 3 deletions public/assets/js/lasso.js
Expand Up @@ -11742,6 +11742,7 @@ jQuery(document).ready(function($){
jQuery(document).on('submit','#lasso--postsettings__form',function(e) {

e.preventDefault();
$('#lasso--save').trigger('click');

var $this = $(this);

Expand Down Expand Up @@ -12549,6 +12550,7 @@ jQuery(function( $ ) {
} else {
$(dropUp).hide();
}
restoreSelection(window.selRange);
$('#lasso-toolbar--html').removeClass('html--drop-'+dropClass() );
$('#lasso-toolbar--link').removeClass('link--drop-'+dropClass() );
if( !lasso_editor.isMobile) {
Expand Down Expand Up @@ -12905,7 +12907,7 @@ jQuery(document).ready(function($){

// get the html from our div
var html = $('#'+editor).html(),
postid = $this.closest('#lasso--controls').data('post-id');
postid = lasso_editor.postid;

// take care of twitter widget
html = process_twitter(html);
Expand Down Expand Up @@ -13424,7 +13426,7 @@ jQuery(document).ready(function($){

var data = {
action: 'process_delete_post',
postid: postid = $this.closest('#lasso--controls').data('post-id'),
postid: lasso_editor.postid,
nonce: lasso_editor.deletePost
}

Expand Down Expand Up @@ -14575,10 +14577,12 @@ function EditusFormatAJAXErrorMessage(jqXHR, exception) {
'src': imageURL,
'alt': attachment.alt,
'class': 'aligncenter size-large wp-image-'+attachment.id+''
})
});
$("html").scrollTop(lasso_editor.scrollTop);

});

lasso_editor.scrollTop = $(window).scrollTop();
// Finally, open the modal
ase_edit_frame.open();

Expand Down
2 changes: 1 addition & 1 deletion public/assets/js/lasso.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/assets/js/lasso.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/assets/js/source/post-settings.js
Expand Up @@ -142,6 +142,7 @@
jQuery(document).on('submit','#lasso--postsettings__form',function(e) {

e.preventDefault();
$('#lasso--save').trigger('click');

var $this = $(this);

Expand Down
4 changes: 3 additions & 1 deletion public/assets/js/source/process-wpimg.js
Expand Up @@ -43,10 +43,12 @@
'src': imageURL,
'alt': attachment.alt,
'class': 'aligncenter size-large wp-image-'+attachment.id+''
})
});
$("html").scrollTop(lasso_editor.scrollTop);

});

lasso_editor.scrollTop = $(window).scrollTop();
// Finally, open the modal
ase_edit_frame.open();

Expand Down
1 change: 1 addition & 0 deletions public/assets/js/source/toolbar.js
Expand Up @@ -102,6 +102,7 @@ jQuery(function( $ ) {
} else {
$(dropUp).hide();
}
restoreSelection(window.selRange);
$('#lasso-toolbar--html').removeClass('html--drop-'+dropClass() );
$('#lasso-toolbar--link').removeClass('link--drop-'+dropClass() );
if( !lasso_editor.isMobile) {
Expand Down

0 comments on commit a8b8990

Please sign in to comment.