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

Commit

Permalink
Use plugin Id instead of Name in class.ShareCenter.js
Browse files Browse the repository at this point in the history
ajxp_plugin[@name='share'] -> ajxp_plugin[@id='action.share']

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
  • Loading branch information
Etienne CHAMPETIER committed Aug 27, 2013
1 parent 37cdd5a commit 3fb2824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/plugins/action.share/class.ShareCenter.js
Expand Up @@ -221,7 +221,7 @@ Class.create("ShareCenter", {
};
oForm.down('#repo_label').setValue(getBaseName(this.currentNode.getPath()));
if(!$('share_folder_form').autocompleter){
var pref = ajaxplorer.getPluginConfigs("ajxp_plugin[@name='share']").get("SHARED_USERS_TMP_PREFIX");
var pref = ajaxplorer.getPluginConfigs("ajxp_plugin[@id='action.share']").get("SHARED_USERS_TMP_PREFIX");
$('share_folder_form').autocompleter = new AjxpUsersCompleter(
$("shared_user"),
$("shared_users_summary"),
Expand Down Expand Up @@ -383,11 +383,11 @@ Class.create("ShareCenter", {
}.bind(this));
this.updateDialogButtons(oForm.down("div.dialogButtons"), "file");
}else{
this.maxexpiration = parseInt(ajaxplorer.getPluginConfigs("ajxp_plugin[@name='share']").get("FILE_MAX_EXPIRATION"));
this.maxexpiration = parseInt(ajaxplorer.getPluginConfigs("ajxp_plugin[@id='action.share']").get("FILE_MAX_EXPIRATION"));
if(this.maxexpiration > 0){
oForm.down("[name='expiration']").setValue(this.maxexpiration);
}
this.maxdownload = parseInt(ajaxplorer.getPluginConfigs("ajxp_plugin[@name='share']").get("FILE_MAX_DOWNLOAD"));
this.maxdownload = parseInt(ajaxplorer.getPluginConfigs("ajxp_plugin[@id='action.share']").get("FILE_MAX_DOWNLOAD"));
if(this.maxdownload > 0){
oForm.down("[name='downloadlimit']").setValue(this.maxdownload);
}
Expand Down

0 comments on commit 3fb2824

Please sign in to comment.