From 92445fe144892547c83d2f07b33be0eaeda1e228 Mon Sep 17 00:00:00 2001 From: Sergey S Yaglov Date: Wed, 29 Feb 2012 09:42:01 +0300 Subject: [PATCH] =?UTF-8?q?main.js:=20=D0=B5=D1=81=D0=BB=D0=B8=20url=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20ajax-=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=D1=87=D0=B8=D0=BD=D0=B0=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D1=8F=20=D1=81=20"/",=20=D1=82=D0=BE=20=D0=BD=D0=B5=D1=84?= =?UTF-8?q?=D0=B8=D0=B3=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BA=20=D0=BD=D0=B5=D0=BC=D1=83=20=D0=BD=D0=B0=D1=87?= =?UTF-8?q?=D0=B0=D0=BB=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/lib/internal/template/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/lib/internal/template/js/main.js b/engine/lib/internal/template/js/main.js index 024bb198..9be7b2fc 100644 --- a/engine/lib/internal/template/js/main.js +++ b/engine/lib/internal/template/js/main.js @@ -340,7 +340,7 @@ ls = (function ($) { } }); - if (url.indexOf('http://')!=0 && url.indexOf('https://')!=0) { + if (url.indexOf('http://')!=0 && url.indexOf('https://')!=0 && url.indexOf('/')!=0) { url=aRouter['ajax']+url+'/'; } @@ -376,7 +376,7 @@ ls = (function ($) { if (typeof(form)=='string') { form=$('#'+form); } - if (url.indexOf('http://')!=0 && url.indexOf('https://')!=0) { + if (url.indexOf('http://')!=0 && url.indexOf('https://')!=0 && url.indexOf('/')!=0) { url=aRouter['ajax']+url+'/'; }