auto preview when inserting a media item or embed into a post. Since this unanticipated action could be alarming (some might think the post was actually submitted), also provide a visible preview indicator within the previewed content. Remove the css for the old striped background image which hasn't been available for previewed content for a year or two.
This commit is contained in:
@@ -251,8 +251,7 @@ footer {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.preview {
|
||||
background: url('../img/gray_and_white_diagonal_stripes_background_seamless.gif');
|
||||
.preview-indicator {
|
||||
}
|
||||
|
||||
#theme-preview {
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="wall-item-author">
|
||||
{{if $item.previewing}}<span class="preview-indicator"><i class="fa fa-eye" title="{{$item.preview_lbl}}"></i></span> {{/if}}
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.via}} <a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a>{{/if}}
|
||||
</div>
|
||||
<div class="wall-item-ago" id="wall-item-ago-{{$item.id}}">
|
||||
|
||||
@@ -126,6 +126,7 @@ function enableOnUser(){
|
||||
$('#jot-media').val($('#jot-media').val() + data.result.message);
|
||||
},
|
||||
stop: function(e,data) {
|
||||
preview_post();
|
||||
$('#profile-rotator').spin(false);
|
||||
},
|
||||
});
|
||||
@@ -175,6 +176,7 @@ function enableOnUser(){
|
||||
$('#profile-rotator').spin('tiny');
|
||||
$.get('{{$baseurl}}/linkinfo?f=&binurl=' + reply, function(data) {
|
||||
addeditortext(data);
|
||||
preview_post();
|
||||
$('#profile-rotator').spin(false);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="wall-item-author">
|
||||
{{if $item.previewing}}<span class="preview-indicator"><i class="fa fa-eye" title="{{$item.preview_lbl}}"></i></span> {{/if}}
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.via}} <a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a>{{/if}}
|
||||
</div>
|
||||
<div class="wall-item-ago" id="wall-item-ago-{{$item.id}}">
|
||||
|
||||
Reference in New Issue
Block a user