Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
совместимость с 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
verdet23 committed Apr 5, 2012
1 parent f70d761 commit 611020e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README
Expand Up @@ -4,7 +4,10 @@

В config/config.php можно указать свой список доменов.

Требования: LiveStreet 0.5, тема на основе jQuery.
Cовместим с LS 0.5.

Для совместимости с LS 0.4 необходимо в /engine/modules/viewer/plugs/
поместить файл function.json.php от LS 0.5 (не тестировалось)

Используется jQuery plugin mailcheck
https://github.com/Kicksend/mailcheck
2 changes: 1 addition & 1 deletion plugin.xml
Expand Up @@ -8,7 +8,7 @@
</author>
<version>0.0.1</version>
<requires>
<livestreet>0.5.0</livestreet>
<livestreet>0.4.0</livestreet>
<plugins>
</plugins>
</requires>
Expand Down
3 changes: 2 additions & 1 deletion templates/skin/default/mailcheck.tpl
@@ -1,10 +1,11 @@
<div id="email-suggestion">
{$aLang.mailcheck_seems} <a href="#" class="apply" title="{$aLang.mailcheck_replace}"><span>user</span>@<b>domain.com</b></a>? <a href="#" class="close" title="{$aLang.mailcheck_right}">✖</a>
</div>
<script type="text/javascript" src="/engine/lib/external/jquery/jquery.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="{$sTemplateWebPathPluginMailcheck}js/jquery.mailcheck.min.js"></script>
<link rel="stylesheet" type="text/css" href="{$sTemplateWebPathPluginMailcheck}css/mailcheck.css" media="all" />
<script>
$.noConflict();
jQuery(document).ready(function(){
var domains = {json var=$aDomains};
jQuery('#email-suggestion').insertAfter(jQuery('input[name=mail]'));
Expand Down

0 comments on commit 611020e

Please sign in to comment.