Changeset c4e2312
- Timestamp:
- Nov 26, 2019, 12:31:23 AM (4 years ago)
- Branches:
- master
- Children:
- 79b2416, d311f11
- Parents:
- 594f591 (diff), ee33d0c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- lazersib <blacklight@…> (26/11/19 00:31:23)
- git-committer:
- GitHub <noreply@…> (26/11/19 00:31:23)
- Location:
- web
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
web/core.php
r594f591 rc4e2312 192 192 if(isset($_REQUEST[$varname])) return $_REQUEST[$varname]; 193 193 return $def; 194 } 195 196 /// Проверяет был ли получен запрос через ajax 197 /// @return boolean 198 function isAjaxRequest() 199 { 200 return isset($_SERVER['HTTP_X_REQUESTED_WITH']) 201 && !empty($_SERVER['HTTP_X_REQUESTED_WITH']) 202 && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'; 194 203 } 195 204 -
web/css/comm.js
r594f591 rc4e2312 379 379 httpRequest.onreadystatechange = function() { popupReqWin(httpRequest,popup); }; 380 380 httpRequest.open('GET', url, true); 381 httpRequest.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); 381 382 httpRequest.send(null); 382 383 return false; … … 405 406 //popup.innerHTML="Обработка..."; 406 407 } 407 else popup.innerHTML="state "+httpRequest.readyState;408 408 } 409 409 -
web/skins/default/basic.css
r594f591 rc4e2312 193 193 div.notify 194 194 { 195 width: 97%;196 195 BORDER: #999900 1px solid; 197 196 FONT-SIZE: 14px; -
web/vitrina.php
r594f591 rc4e2312 194 194 } 195 195 } else { 196 if (getenv("HTTP_REFERER")) { 197 redirect(getenv("HTTP_REFERER")); 198 } 199 $tmpl->msg("Товар добавлен в корзину!", "info", "<a class='urllink' href='/vitrina.php?mode=basket'>Ваша корзина</a>"); 196 if(isAjaxRequest()) { 197 $tmpl->msg("Товар добавлен в корзину!", "info", "<a class='urllink' href='/vitrina.php?mode=basket'>Ваша корзина</a>"); 198 } else { 199 if (getenv("HTTP_REFERER")) { 200 redirect(getenv("HTTP_REFERER")); 201 } 202 } 200 203 } 201 204 } else {
Note: See TracChangeset
for help on using the changeset viewer.