Permalink
Browse files

pro

  • Loading branch information...
wiercik6 committed Feb 28, 2012
1 parent 2e124bd commit c9e46fe3200d2bf1019fb91b9e08cfb96a75c7da
Showing with 13 additions and 3 deletions.
  1. +9 −3 js/CleengFEWidgetWP.js
  2. +4 −0 languages/cleeng-fr_FR.po
View
@@ -30,7 +30,7 @@ var CleengWidget = {
}
});
- jQuery('.cleeng-login').click(function() {CleengWidget.logIn();return false;});
+ //jQuery('.cleeng-login').click(function() {CleengWidget.logIn();return false;});
jQuery('.cleeng-logout').click(function() {CleengWidget.logOut();return false;});
CleengWidget.contentIds = [];
@@ -43,6 +43,11 @@ var CleengWidget = {
CleengWidget.subscribe(contentId);
return false;
});
+ jQuery('#cleeng-layer-' + contentId + ' .cleeng-login')
+ .click(function() {
+ CleengWidget.logIn(contentId);
+ return false;
+ });
jQuery('#cleeng-layer-' + contentId + ' .cleeng-button').not('.cleeng-subscribe')
.click(function() {
CleengWidget.purchaseContent(contentId);
@@ -262,8 +267,9 @@ var CleengWidget = {
}
}
},
- logIn: function() {
-
+ logIn: function(contentId) {
+
+ CleengClient.setCobrandedPublisherId(CleengWidget.contentInfo[contentId].publisherId);
CleengClient.logIn(function(result) {
CleengWidget.getUserInfo();
if (result && typeof result.showMessage !== 'undefined' && result.showMessage) {
@@ -195,6 +195,10 @@ msgstr "Qu'est ce que Cleeng?"
msgid "Quick-start guide"
msgstr "Guide de démarrage rapide"
+#: ../php/classes/Admin.php:229
+msgid "Settings to manage"
+msgstr "Comment paramètrer Cleeng?"
+
#: ../php/classes/Admin.php:211
#: ../php/classes/Page/Settings.php:127
#, fuzzy

0 comments on commit c9e46fe

Please sign in to comment.