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

Commit

Permalink
Fix how we getPluginsConfigs() in javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Aug 7, 2014
1 parent f046edd commit c0a4a63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/src/plugins/action.share/class.ShareCenter.js
Expand Up @@ -311,7 +311,7 @@ Class.create("ShareCenter", {
modal.refreshDialogPosition();
});

this.createQRCode = ajaxplorer.getPluginConfigs("ajxp_plugin[@id='action.share']").get("CREATE_QRCODE");
this.createQRCode = ajaxplorer.getPluginConfigs("action.share").get("CREATE_QRCODE");
var disableAutocompleter = (nodeMeta.get("ajxp_shared") && ( this.shareFolderMode != "workspace" || this.readonlyMode ));
var updateUserEntryAfterCreate = function(li, assignedRights, watchValue){
if(assignedRights == undefined) assignedRights = "r";
Expand All @@ -335,7 +335,7 @@ Class.create("ShareCenter", {
};
oForm.down('#repo_label').setValue(getBaseName(this.currentNode.getPath()));
if(!$('share_folder_form').autocompleter){
var pref = ajaxplorer.getPluginConfigs("ajxp_plugin[@id='action.share']").get("SHARED_USERS_TMP_PREFIX");
var pref = ajaxplorer.getPluginConfigs("action.share").get("SHARED_USERS_TMP_PREFIX");
$('share_folder_form').autocompleter = new AjxpUsersCompleter(
$("shared_user"),
$("shared_users_summary"),
Expand Down Expand Up @@ -996,7 +996,7 @@ Class.create("ShareCenter", {
}

// MAILER BUTTON
var forceOldSchool = ajaxplorer.getPluginConfigs("ajxp_plugin[@id='action.share']").get("EMAIL_INVITE_EXTERNAL");
var forceOldSchool = ajaxplorer.getPluginConfigs("action.share").get("EMAIL_INVITE_EXTERNAL");
var mailerButton, mailerShower;
if(shareType == "file" && !dialogButtonsOrRow.down('#mailer_button')){
dialogButtonsOrRow.down('.SF_horizontal_actions').insert({bottom:"<span class='simple_tooltip_observer' id='mailer_button' data-tooltipTitle='"+MessageHash['share_center.'+(shareType=='file'?'80':'80b')]+"'><span class='icon-envelope'></span> "+MessageHash['share_center.79']+"</span>"});
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/manifest.xml
Expand Up @@ -255,7 +255,7 @@
]]>
</clientForm>
<clientListener name="init"><![CDATA[
if(ajaxplorer.user && !ajaxplorer.user.canWrite() || ajaxplorer.getPluginConfigs("ajxp_plugin[@id='action.share']").get("ENABLE_FOLDER_SHARING") === false ){
if(ajaxplorer.user && !ajaxplorer.user.canWrite() || ajaxplorer.getPluginConfigs("action.share").get("ENABLE_FOLDER_SHARING") === false ){
var action = ajaxplorer.getActionBar().getActionByName('share');
action.selectionContext.dir = false;
}
Expand Down

0 comments on commit c0a4a63

Please sign in to comment.