|
|
@@ -27,7 +27,7 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
|
|
|
|
|
|
public function defaultAction() {
|
|
|
UI::gora();
|
|
|
- UI::emptyTag('link', ['href'=>'static/zaliczka/main.css', 'rel'=>'stylesheet']);
|
|
|
+ // UI::emptyTag('link', ['href'=>'static/zaliczka/main.css', 'rel'=>'stylesheet']);
|
|
|
if (1 != V::get('_print', '', $_GET)) UI::menu();
|
|
|
try {
|
|
|
$data = array();
|
|
|
@@ -58,10 +58,10 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
|
|
|
if (1 != V::get('_print', '', $_GET)) UI::dol();
|
|
|
}
|
|
|
|
|
|
- public function syncStataAjaxAction() {
|
|
|
- Response::sendTryCatchJson(array($this, 'syncStataAjaxReponseCallback'), $args = 'JSON_FROM_REQUEST_BODY');// try to read json from request body
|
|
|
+ public function syncStateAjaxAction() {
|
|
|
+ Response::sendTryCatchJson(array($this, 'syncStateAjaxReponseCallback'), $args = 'JSON_FROM_REQUEST_BODY');// try to read json from request body
|
|
|
}
|
|
|
- public function syncStataAjaxReponseCallback($args) {
|
|
|
+ public function syncStateAjaxReponseCallback($args) {
|
|
|
if (empty($args) || !array_key_exists('updates', $args)) throw new HttpException("Error Parsing Request - missing args", 400);
|
|
|
$args['idUser'] = V::get('idUser', 0, $_REQUEST, 'int');// (int)$args['idUser'];
|
|
|
if ($args['idUser'] <= 0) throw new HttpException("Error Parsing Request - missing idUser", 400);
|
|
|
@@ -659,7 +659,7 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
|
|
|
'DBG' => (DBG::isActive())
|
|
|
]);
|
|
|
UI::inlineJS(__FILE__ . '.syncState.js', [
|
|
|
- 'SYNC_URL' => Request::getPathUri() . "index.php?_route=UrlAction_UserProNetMediaZaliczka&_task=syncStataAjax&idUser={$idUser}&idZaliczka={$idZaliczka}",
|
|
|
+ 'SYNC_URL' => Request::getPathUri() . "index.php?_route=UrlAction_UserProNetMediaZaliczka&_task=syncStateAjax&idUser={$idUser}&idZaliczka={$idZaliczka}",
|
|
|
'DBG' => (DBG::isActive())
|
|
|
]);
|
|
|
UI::tag('script', ['src'=>'static/vendor.js' . (V::get('DBG', '', $_GET) ? '?_ts=' . time() : ''), 'type'=>'text/javascript']);
|