Reformat code
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System.Web;
|
||||||
using System.Web;
|
|
||||||
|
|
||||||
namespace VAR.Focus.Web.Code
|
namespace VAR.Focus.Web.Code
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System.Web;
|
||||||
using System.Web;
|
|
||||||
|
|
||||||
namespace VAR.Focus.Web.Code
|
namespace VAR.Focus.Web.Code
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using System.Web.UI;
|
|
||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
using VAR.Focus.BusinessLogic;
|
using VAR.Focus.BusinessLogic;
|
||||||
using VAR.Focus.BusinessLogic.Entities;
|
using VAR.Focus.BusinessLogic.Entities;
|
||||||
|
|||||||
@@ -54,9 +54,9 @@ function ElementToggleClass(element, className) {
|
|||||||
|
|
||||||
function escapeHTML(s) {
|
function escapeHTML(s) {
|
||||||
return s.replace(/&/g, '&')
|
return s.replace(/&/g, '&')
|
||||||
.replace(/"/g, '"')
|
.replace(/"/g, '"')
|
||||||
.replace(/</g, '<')
|
.replace(/</g, '<')
|
||||||
.replace(/>/g, '>');
|
.replace(/>/g, '>');
|
||||||
}
|
}
|
||||||
|
|
||||||
function fixedEncodeURIComponent(str) {
|
function fixedEncodeURIComponent(str) {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ function SendData(url, data, onData, onError) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
xhr.setRequestHeader('Content-Type',
|
xhr.setRequestHeader('Content-Type',
|
||||||
'application/x-www-form-urlencoded');
|
'application/x-www-form-urlencoded');
|
||||||
xhr.send(GetDataQueryString(data));
|
xhr.send(GetDataQueryString(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,8 +62,8 @@ function GetFormQueryString(idForm) {
|
|||||||
|
|
||||||
function appendVal(name, value) {
|
function appendVal(name, value) {
|
||||||
queryString += (queryString.length > 0 ? "&" : "")
|
queryString += (queryString.length > 0 ? "&" : "")
|
||||||
+ fixedEncodeURIComponent(name) + "="
|
+ fixedEncodeURIComponent(name) + "="
|
||||||
+ fixedEncodeURIComponent(value ? value : "");
|
+ fixedEncodeURIComponent(value ? value : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
var elements = form.elements;
|
var elements = form.elements;
|
||||||
@@ -74,14 +74,14 @@ function GetFormQueryString(idForm) {
|
|||||||
|
|
||||||
if (elemName) {
|
if (elemName) {
|
||||||
if (
|
if (
|
||||||
elemType.indexOf("TEXT") !== -1 ||
|
elemType.indexOf("TEXT") !== -1 ||
|
||||||
elemType.indexOf("TEXTAREA") !== -1 ||
|
elemType.indexOf("TEXTAREA") !== -1 ||
|
||||||
elemType.indexOf("PASSWORD") !== -1 ||
|
elemType.indexOf("PASSWORD") !== -1 ||
|
||||||
elemType.indexOf("BUTTON") !== -1 ||
|
elemType.indexOf("BUTTON") !== -1 ||
|
||||||
elemType.indexOf("HIDDEN") !== -1 ||
|
elemType.indexOf("HIDDEN") !== -1 ||
|
||||||
elemType.indexOf("SUBMIT") !== -1 ||
|
elemType.indexOf("SUBMIT") !== -1 ||
|
||||||
elemType.indexOf("IMAGE") !== -1
|
elemType.indexOf("IMAGE") !== -1
|
||||||
) {
|
) {
|
||||||
appendVal(elemName, element.value);
|
appendVal(elemName, element.value);
|
||||||
} else if (elemType.indexOf("CHECKBOX") !== -1 && element.checked) {
|
} else if (elemType.indexOf("CHECKBOX") !== -1 && element.checked) {
|
||||||
appendVal(elemName, element.value ? element.value : "On");
|
appendVal(elemName, element.value ? element.value : "On");
|
||||||
@@ -119,6 +119,6 @@ function SendForm(url, idForm, onData, onError) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
xhr.setRequestHeader('Content-Type',
|
xhr.setRequestHeader('Content-Type',
|
||||||
'application/x-www-form-urlencoded');
|
'application/x-www-form-urlencoded');
|
||||||
xhr.send(GetFormQueryString(idForm));
|
xhr.send(GetFormQueryString(idForm));
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divChatContainer{
|
.divChatContainer {
|
||||||
transition-property: width, height, opacity;
|
transition-property: width, height, opacity;
|
||||||
transition-duration: 0.3s;
|
transition-duration: 0.3s;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user