Skip to content

Commit

Permalink
Addressing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shramee committed Aug 18, 2017
1 parent b87e0e8 commit 1c8f98f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 6 additions & 1 deletion assets/front-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ jQuery( function ( $ ) {

loggedOut: function () {
$bd.removeClass( 'pcld-logged-in' );
var msg = '<h4>Please ' +
'<a href="javascript:pcld.loginPopup()" style="color: #28d">login to your Pootle Cloud account</a>' +
' and save some templates.</h4>';
$mydesigns.html( msg );
$communitydesigns.html( msg );
},

templates: function ( tpls ) {
Expand Down Expand Up @@ -199,7 +204,7 @@ jQuery( function ( $ ) {
},

logout: function () {
pcld.appMsg( { pcldCallback: 'logout' }, '*' );
pcld.appMsg( 'logout' );
},

loginPopup: function () {
Expand Down
2 changes: 1 addition & 1 deletion assets/front-end.min.js

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

4 changes: 1 addition & 3 deletions pootle-cloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ function template_tab_wrap_close () {
</div>
<div class="template pcld-tpls" id="pcld-comm-designs">
<h4>
Couldn't find any community templates, please
<a href="https://www.pootlepress.com/support-form/" style="color: #28d">contact support</a>
if your internet connection is working.
Please <a href="javascript:pcld.loginPopup()" style="color: #28d">login to your Pootle Cloud account</a> to grab contributed community templates.
</h4>
</div>
<div class="template pcld-tpls templates-wrap" id="pcld-my-designs">
Expand Down

0 comments on commit 1c8f98f

Please sign in to comment.