fix slideshow, web_path was not set correctly
[phpfspot.git] / phpfspot.js
index 8db1f651b132cbf964f6fe4ef06280a5f31c2d2e..19224483d4fdfcc1321c229156ec1e0f15a8dce4 100644 (file)
@@ -678,8 +678,13 @@ function noop() {}
 /**
  * start slideshow
  */
 /**
  * start slideshow
  */
-function startSlideShow()
+function startSlideShow(srv_webpath)
 {
 {
+   if(srv_webpath != undefined)
+      web_path = srv_webpath;
+   else
+      web_path = '';
+
    if(!sliding) {
       HTML_AJAX.grab(encodeURI(web_path + '/rpc.php?action=reset_slideshow'));
       nextSlide();
    if(!sliding) {
       HTML_AJAX.grab(encodeURI(web_path + '/rpc.php?action=reset_slideshow'));
       nextSlide();