Plugin Directory

Changeset 3448891


Ignore:
Timestamp:
01/28/2026 05:05:19 PM (2 months ago)
Author:
imsupporting
Message:

Version 5.0.2.1 - Fixed JavaScript code displaying as text on settings page

Location:
imsupporting/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • imsupporting/trunk/imsupporting-admin.php

    r3448887 r3448891  
    259259    <?php endif; ?>
    260260
    261 </div>
    262     function DoIMSRegister() {
    263         var xhr = new XMLHttpRequest();
    264         var email = document.getElementById('email').value;
    265         var password = document.getElementById('password').value;
    266         var website = document.getElementById('website').value;
    267 
    268         // Basic validation
    269         if (!email || !password) {
    270             alert("Please enter both email and password.");
    271             return;
    272         }
    273 
    274         xhr.open('POST', 'https://imsupporting.com/sign-up.php');
    275         xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    276         xhr.setRequestHeader('Accept', 'application/json');
    277        
    278         var params = 'username=' + encodeURIComponent(email) +
    279                      '&password=' + encodeURIComponent(password) +
    280                      '&website=' + encodeURIComponent(website) +
    281                      '&api_request=1';
    282 
    283         xhr.onload = function() {
    284             if (xhr.status === 200) {
    285                 try {
    286                     var response = JSON.parse(xhr.responseText);
    287                    
    288                     if (response.success) {
    289                         document.getElementById('ims_siteid').style.borderColor = "green";
    290                         document.getElementById('imsError').style.color = "green";
    291                         document.getElementById('ims_siteid').value = response.siteid;
    292                         document.getElementById('imsError').innerHTML = "Account Created! <br><br>Please Click <b>SAVE CHANGES</b> below";
    293                         document.getElementById('imssignup').style.display = "none";
    294                         // Scroll to save button
    295                         document.querySelector('input[type="submit"]').scrollIntoView({behavior: 'smooth'});
    296                     } else {
    297                         alert("Error: " + (response.error || "Unknown error occurred"));
    298                     }
    299                 } catch (e) {
    300                     console.error("JSON Parse Error", e);
    301                     alert("Error: Could not parse server response.");
    302                 }
    303             } else {
    304                 try {
    305                     var response = JSON.parse(xhr.responseText);
    306                     alert("Error: " + (response.error || "Connection error"));
    307                 } catch(e) {
    308                     alert("Connection error occurred. Status: " + xhr.status);
    309                 }
    310             }
    311         };
    312        
    313         xhr.onerror = function() {
    314             alert("Network error occurred.");
    315         };
    316        
    317         xhr.send(params);
    318     }
    319     </script>
    320261</div>
    321262
  • imsupporting/trunk/imsupporting-live-chat-plugin.php

    r3448887 r3448891  
    55Donate link: http://IMsupporting.com
    66Tags: live chat, live-chat, chat plugin, free live chat, live chat, chat, livechat, live chat software, live chat widget, chat widget, widget, chat online, online chat, mobile live chat, wordpress live chat, live support, customer support, woocommerce chat, chat plugin, plugin, wp chat, zopim
    7 Stable tag: 5.0.2.0
    8 Version: 5.0.2.0
     7Stable tag: 5.0.2.1
     8Version: 5.0.2.1
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • imsupporting/trunk/readme.txt

    r3448887 r3448891  
    55Tags: live chat, ai chat, hybrid chat, live support, customer support
    66Tested up to: 6.9
    7 Stable tag: 5.0.2.0
     7Stable tag: 5.0.2.1
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6262== Changelog ==
    6363
     64= 5.0.2.1 =
     65* Fixed JavaScript code displaying as plain text on settings page
     66* Removed duplicate function definition causing display issues
     67
    6468= 5.0.2.0 =
    6569* Complete settings page redesign with modern, clean interface
Note: See TracChangeset for help on using the changeset viewer.