git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@433 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
pherum83 2012-06-17 21:18:46 +00:00
commit 838dffe759

View file

@ -338,10 +338,10 @@ $(document).ready(function(){
var cArray = '["http:\/\/torrentpier.me","\u041a\u043e\u043f\u0438\u0440\u0430\u0439\u0442\u044b \u043d\u0430 \u043c\u0435\u0441\u0442\u043e!!!"]';
var cArray = JSON.parse(cArray);
var str = $('#t2t').html();
if(str.indexOf(cArray[0]) < 0){
alert(cArray[1]);
}
var str = $('#t2t').html() || '';
if (str.indexOf(cArray[0]) < 0 && window.location.href.indexOf('/admin/') < 0) {
alert(cArray[1]);
}
});
//