Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix external links to applications
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 18, 2014
1 parent 82dcca5 commit a1cbfa3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions core/src/plugins/access.ajxp_home/manifest.xml
Expand Up @@ -11,13 +11,13 @@
<server_settings>
<global_param name="ENABLE_GETTING_STARTED" type="boolean"
label="Enable Getting Started" description="Enable addition tabulation to access getting started videos" default="true" expose="true"/>
<global_param name="URL_APP_IOSAPPSTORE" type="string"
<global_param name="URL_APP_IOSAPPSTORE" type="string" expose="true"
label="iOS App URL" description="URL of the iOS application" default="https://itunes.apple.com/us/app/pydio/id709275884?mt=8"/>
<global_param name="URL_APP_ANDROID" type="string"
<global_param name="URL_APP_ANDROID" type="string" expose="true"
label="iOS App URL" description="URL of the iOS application" default="https://play.google.com/store/apps/details?id=com.pydio.android.Client"/>
<global_param name="URL_APP_SYNC_WIN" type="string"
<global_param name="URL_APP_SYNC_WIN" type="string" expose="true"
label="iOS App URL" description="URL of the iOS application" default="http://pyd.io/apps/desktop-sync-client/"/>
<global_param name="URL_APP_SYNC_MAC" type="string"
<global_param name="URL_APP_SYNC_MAC" type="string" expose="true"
label="iOS App URL" description="URL of the iOS application" default="http://pyd.io/apps/desktop-sync-client/"/>

</server_settings>
Expand Down Expand Up @@ -153,6 +153,10 @@
main.next('iframe').src = main.readAttribute('data-videoSrc');
}catch(e){}
});
var configs = ajaxplorer.getPluginConfigs('access.ajxp_home');
$A(['URL_APP_IOSAPPSTORE', 'URL_APP_ANDROID', 'URL_APP_SYNC_WIN', 'URL_APP_SYNC_MAC']).each(function(p){
$('videos_pane').select('a[href="'+p+'"]').invoke('writeAttribute', 'href', configs.get(p));
});
$('videos_pane')._OBSERVER_SET = true;
}
]]></clientCallback>
Expand Down

0 comments on commit a1cbfa3

Please sign in to comment.