# HG changeset patch # User František Kučera # Date 1296009301 -3600 # Node ID bcf03fc1e3f96277f4a940c5926de434d4faa40b # Parent 7eb749d4a9491e62179b6c400c1c4165fb66cd46 správná URL i v javascriptu (aby fungoval i na /podnik/123 a ne jen v /aaa=bbb) diff -r 7eb749d4a949 -r bcf03fc1e3f9 java/nekurak.net-web/web/WEB-INF/tags/nekurak/stranka.tag --- a/java/nekurak.net-web/web/WEB-INF/tags/nekurak/stranka.tag Wed Jan 26 03:24:40 2011 +0100 +++ b/java/nekurak.net-web/web/WEB-INF/tags/nekurak/stranka.tag Wed Jan 26 03:35:01 2011 +0100 @@ -48,6 +48,10 @@

+
diff -r 7eb749d4a949 -r bcf03fc1e3f9 java/nekurak.net-web/web/js/hlasovani.js --- a/java/nekurak.net-web/web/js/hlasovani.js Wed Jan 26 03:24:40 2011 +0100 +++ b/java/nekurak.net-web/web/js/hlasovani.js Wed Jan 26 03:35:01 2011 +0100 @@ -9,7 +9,7 @@ /** * TODO: správné URL – ${zc} */ - url: "zdroje/hlas/", + url: nekurak.contextPath + "zdroje/hlas/", data: pozadavek, contentType: "text/xml", dataType: "text", diff -r 7eb749d4a949 -r bcf03fc1e3f9 java/nekurak.net-web/web/js/komentare.js --- a/java/nekurak.net-web/web/js/komentare.js Wed Jan 26 03:24:40 2011 +0100 +++ b/java/nekurak.net-web/web/js/komentare.js Wed Jan 26 03:35:01 2011 +0100 @@ -8,12 +8,12 @@ /** * TODO: správné URL – ${zc} */ - $("#formularKomentuj .vystup").load("komentare", $("#formularKomentuj form").serialize()); + $("#formularKomentuj .vystup").load(nekurak.contextPath + "komentare", $("#formularKomentuj form").serialize()); }; komentare.odeslat = function() { /** * TODO: správné URL – ${zc} */ - $("#formularKomentuj .vystup").load("komentare?odeslat=true", $("#formularKomentuj form").serialize()); + $("#formularKomentuj .vystup").load(nekurak.contextPath + "komentare?odeslat=true", $("#formularKomentuj form").serialize()); };