Skip to content

Commit

Permalink
Mise au format d'une App Owncloud
Browse files Browse the repository at this point in the history
suppress of files outside App. Use of /public.php?version=pics
  • Loading branch information
unknown authored and unknown committed Dec 20, 2012
1 parent dea0a98 commit ce4d858
Show file tree
Hide file tree
Showing 11 changed files with 1,043 additions and 436 deletions.
12 changes: 6 additions & 6 deletions oc454/apps/files_sharing_widget/js/widget.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
if (window.jQuery === undefined || window.jQuery.fn.jquery !== "1.8.2") {
var script_tag = document.createElement("script");
script_tag.setAttribute("type", "text/javascript");
script_tag.setAttribute("src",ownWidgetOptions.path + ownWidgetOptions.appspath+ "/files_sharing_widget/js/jquery-pack.min.js");
script_tag.setAttribute("src",ownWidgetOptions.appspath+ "/js/jquery-pack.min.js");
if (script_tag.readyState) {

script_tag.onreadystatechange = function() {
Expand Down Expand Up @@ -60,7 +60,7 @@ var OwnWidget={
var defaults={
crypt:'',
path:'',
appspath:'apps',
appspath:'', //<?php echo OC_HELPER::makeURLAbsolute(OC_App::getAppWebPath("files_sharing_widget")); ?>
display:'',
fbAppid:'',
modal:true,
Expand Down Expand Up @@ -88,7 +88,7 @@ var OwnWidget={

loadCssFile:function(){
if(jQuery('#ownWidgetCss').length<1){
jQuery("<link>", {id:'ownWidgetCss',rel : "stylesheet",type : "text/css",href :this.options.path + this.options.appspath+ "/files_sharing_widget/css/widget.css"}).appendTo("head");
jQuery("<link>", {id:'ownWidgetCss',rel : "stylesheet",type : "text/css",href :this.options.appspath + "/css/widget.css"}).appendTo("head");
}
},

Expand Down Expand Up @@ -209,7 +209,7 @@ var OwnWidget={
jQuery.ajax({
dataType : "jsonp",
jsonp : "jsonp_callback",
url : self.options.path + "widget.php?iToken=" + rawurlencode(self.options.crypt) + self.loadPage,
url : self.options.path + "/public.php?service=pics&iToken=" + rawurlencode(self.options.crypt) + self.loadPage,

success : function(data) {

Expand Down Expand Up @@ -289,7 +289,7 @@ var OwnWidget={
progress_delay : false,
thumb_page : false,
thumb_interval : false,
image_path : this.options.path + this.options.appspath+ "/files_sharing_widget/img/",
image_path : this.options.appspath+ "/img/",
play_button : "#pauseplay",
next_slide : "#nextslide",
prev_slide : "#prevslide",
Expand All @@ -310,7 +310,7 @@ var OwnWidget={
},
initSupersized:function() {
var self=this;
var htmlString = '<div id="slideshow-content" style="display:none;z-index:201;"><div id="closeSlideShow">X</div><div id="prevthumb"></div><div id="nextthumb"></div> <a id="prevslide" class="load-item"></a> <a id="nextslide" class="load-item"></a> <div id="thumb-tray" class="load-item"><div id="thumb-back"></div><div id="thumb-forward"></div></div> <div id="progress-back" class="load-item"><div id="progress-bar"></div></div><div id="controls-wrapper" class="load-item"><div id="controls"><a id="play-button"><img id="pauseplay" src="'+ this.options.path + this.options.appspath + '/files_sharing_widget/img/pause.png" /></a><div id="slidecounter"><span class="slidenumber"></span><span class="totalslides"></span></div><div id="slidecaption"></div><a id="tray-button"><img id="tray-arrow" src="' + this.options.path + this.options.appspath + '/files_sharing_widget/img/button-tray-up.png" /></a><ul id="slide-list"></ul></div></div></div>';
var htmlString = '<div id="slideshow-content" style="display:none;z-index:201;"><div id="closeSlideShow">X</div><div id="prevthumb"></div><div id="nextthumb"></div> <a id="prevslide" class="load-item"></a> <a id="nextslide" class="load-item"></a> <div id="thumb-tray" class="load-item"><div id="thumb-back"></div><div id="thumb-forward"></div></div> <div id="progress-back" class="load-item"><div id="progress-bar"></div></div><div id="controls-wrapper" class="load-item"><div id="controls"><a id="play-button"><img id="pauseplay" src="'+ this.options.appspath + '/img/pause.png" /></a><div id="slidecounter"><span class="slidenumber"></span><span class="totalslides"></span></div><div id="slidecaption"></div><a id="tray-button"><img id="tray-arrow" src="' + this.options.appspath + '/img/button-tray-up.png" /></a><ul id="slide-list"></ul></div></div></div>';
jQuery(htmlString).appendTo("body");
jQuery("#closeSlideShow").click(function() {
if (jQuery.supersized.vars.slideshow_interval) {
Expand Down
Loading

0 comments on commit ce4d858

Please sign in to comment.