Disable the popup template activation of private messages ??

If you need help and think you can pay little for the help please ask the questions here and maybe someone of us can try to help you ...

Disable the popup template activation of private messages ??

Postby sowers » October 9th, 2010, 11:28 pm

Hello,

Image

whenever we turn on a template of private messages that popup warning appears.

I wonder how I can disable the popup template activation of private messages


Thanks attention

seems that this is Java code, but do not know how

Code: Select all
<script type="text/javascript" language="javascript">
    var smilies = [{smilies_str}];
    function loadquickmessage(id) {
        var quick_messages = {quick_messages_str};
        if ( (!$('#field_subject').val() && !$('#field_subject').val()) || confirm('{lang:"messages","new_template_replace"}') ) {
            $('#field_subject').val(quick_messages[id]['subject']);
            $('#field_body').val(quick_messages[id]['message']);
        }
        $('#field_quickmessages').val(0);
    }
    </script>
sowers
 
Posts: 3
Joined: 08 Oct 2010
Knowledge: 1
Vld Version: 2.7
Vld Site: http://www.

Re: Disable the popup template activation of private message

Postby fatlizard » October 14th, 2010, 3:52 pm

sowers wrote:Hello,

Code: Select all
<script type="text/javascript" language="javascript">
    var smilies = [{smilies_str}];
    function loadquickmessage(id) {
        var quick_messages = {quick_messages_str};
        if ( (!$('#field_subject').val() && !$('#field_subject').val()) || confirm('{lang:"messages","new_template_replace"}') ) {
            $('#field_subject').val(quick_messages[id]['subject']);
            $('#field_body').val(quick_messages[id]['message']);
        }
        $('#field_quickmessages').val(0);
    }
    </script>



Try removing the || confirm('{lang:"messages","new_template_replace"}') from the function
User avatar
fatlizard
 
Posts: 14
Joined: 14 Aug 2010
Knowledge: 1
Vld Version: 2.5.7


Return to Requests for Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron