Created
December 23, 2015 22:19
-
-
Save carloszaragoza/2a8f7950fe23a45a4dc0 to your computer and use it in GitHub Desktop.
Remove Button Duplicate in a module, this is in a custom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setButtonStates:function(state){ | |
this._super("setButtonStates",[state]); | |
var $saveButtonEl=this.buttons[this.saveButtonName]; | |
if($saveButtonEl){ | |
switch(state){ | |
case this.STATE.CREATE: | |
case this.STATE.SELECT: | |
$saveButtonEl.getFieldElement().text(app.lang.get('LBL_SAVE_BUTTON_LABEL',this.module)); | |
break; | |
case this.STATE.DUPLICATE: | |
$saveButtonEl.getFieldElement().text(app.lang.get('LBL_IGNORE_DUPLICATE_AND_SAVE',this.module)).hide(); | |
break; | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment