Skip to content
This repository has been archived by the owner on Feb 23, 2020. It is now read-only.

Commit

Permalink
Version 6.3.1-release.1
Browse files Browse the repository at this point in the history
  • Loading branch information
whmcs-dev-team committed Apr 13, 2016
1 parent 7091cd0 commit 8090b2a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
32 changes: 15 additions & 17 deletions js/whmcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,19 +296,21 @@ jQuery(document).ready(function() {
function parseMdeFooter(content, auto_save, saveText)
{
saveText = saveText || saving;
var pattern = /[a-zA-Z0-9_\u0392-\u03c9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,
var pattern = /[^\s]+/g,
m = [],
word_count = 0,
line_count = 0;
if (content) {
m = content.match(pattern);
line_count = content.split(/\\r\\n|\\r|\\n/).length;
}
for(var i = 0; i < m.length; i++) {
if(m[i].charCodeAt(0) >= 0x4E00) {
word_count += m[i].length;
} else {
word_count += 1;
if (m) {
for (var i = 0; i < m.length; i++) {
if (m[i].charCodeAt(0) >= 0x4E00) {
word_count += m[i].length;
} else {
word_count += 1;
}
}
}
return '<div class="small-font">lines: ' + line_count
Expand All @@ -330,6 +332,13 @@ jQuery(document).ready(function() {
setTimeout(doCountdown, 1000);
}
}

// Two-Factor Activation Process Modal Handler.
var frmTwoFactorActivation = $('input[name=2fasetup]').parent('form');
frmTwoFactorActivation.submit(function(e) {
e.preventDefault();
openModal(frmTwoFactorActivation.attr('action'), frmTwoFactorActivation.serialize(), 'Loading...');
});
});

/**
Expand Down Expand Up @@ -447,17 +456,6 @@ function extraTicketAttachment() {
jQuery("#fileUploadsContainer").append('<input type="file" name="attachments[]" class="form-control" />');
}

/**
* Two-Factor Authentication dialog submit handler.
*/
function dialogSubmit() {
jQuery('div#twofaactivation form').attr('method', 'post');
jQuery('div#twofaactivation form').attr('action', 'clientarea.php?action=security');
jQuery('div#twofaactivation form').attr('onsubmit', '');
jQuery('div#twofaactivation form').submit();
return true;
}

/**
* Fetch load and uptime for a given server.
*
Expand Down
2 changes: 1 addition & 1 deletion oauth/authorize.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>
{/if}

<h2 class="text-center">{lang key='oauth.authoriseAppToAccess' appName: $appName}</h2>
<h2 class="text-center">{lang key='oauth.authoriseAppToAccess' appName=$appName}</h2>

<div class="content-padded">
<div class="permission-grants">
Expand Down
2 changes: 1 addition & 1 deletion oauth/layout.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<input type="hidden" name="return_to_app" value="1"/>
<input type="hidden" name="request_hash" value="{$request_hash}"/>
<button type="submit" class="btn btn-default">
{lang key='oauth.returnToApp' appName: $appName}
{lang key='oauth.returnToApp' appName=$appName}
</button>
</form>
</div>
Expand Down

0 comments on commit 8090b2a

Please sign in to comment.