Merge remote-tracking branch 'origin/master'
This commit is contained in:
		| @@ -60,8 +60,9 @@ Zarafa.plugins.mdm.data.ProvisioningStatus = Zarafa.core.Enum.create({ | |||||||
| 				return _('Wipe Requested', 'plugin_mdm'); | 				return _('Wipe Requested', 'plugin_mdm'); | ||||||
| 			case Zarafa.plugins.mdm.data.ProvisioningStatus.WIPE_EXECUTED: | 			case Zarafa.plugins.mdm.data.ProvisioningStatus.WIPE_EXECUTED: | ||||||
| 				return _('Wipe Executed', 'plugin_mdm'); | 				return _('Wipe Executed', 'plugin_mdm'); | ||||||
|  | 			default: | ||||||
|  | 				return _('Not Available', 'plugin_mdm'); | ||||||
| 		} | 		} | ||||||
|         return ''; |  | ||||||
| 	} | 	} | ||||||
| }); | }); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -90,7 +90,8 @@ Zarafa.plugins.mdm.settings.MDMSettingsWidget = Ext.extend(Zarafa.settings.ui.Se | |||||||
| 					}], | 					}], | ||||||
| 					listeners   : { | 					listeners   : { | ||||||
| 						rowdblclick: this.onRowDblClick, | 						rowdblclick: this.onRowDblClick, | ||||||
| 						scope      : this | 						rowclick: this.onRowClick, | ||||||
|  | 						scope: this | ||||||
| 					} | 					} | ||||||
| 				}] | 				}] | ||||||
| 			}] | 			}] | ||||||
| @@ -211,6 +212,18 @@ Zarafa.plugins.mdm.settings.MDMSettingsWidget = Ext.extend(Zarafa.settings.ui.Se | |||||||
| 			manager : Ext.WindowMgr, | 			manager : Ext.WindowMgr, | ||||||
| 			record : record | 			record : record | ||||||
| 		}); | 		}); | ||||||
|  | 	}, | ||||||
|  |  | ||||||
|  | 	/** | ||||||
|  | 	 * Function is called if a row in the grid gets clicked. | ||||||
|  | 	 * Which is use to disabled wipe button if wipe status is not available. | ||||||
|  | 	 * @param {Ext.grid.GridPanel} grid The Grid on which the user clicked | ||||||
|  | 	 * @param {Number} rowIndex The Row number on which was clicked. | ||||||
|  | 	 */ | ||||||
|  | 	onRowClick : function (grid, rowIndex) | ||||||
|  | 	{ | ||||||
|  | 		var record = grid.getStore().getAt(rowIndex); | ||||||
|  | 		this.wipeBtn.setDisabled(!Ext.isDefined(record.get('wipestatus'))); | ||||||
| 	} | 	} | ||||||
| }); | }); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user