showCommon: function()

in server/resources/js/ResourceDialog.js [78:98]


  showCommon: function() {
    Form.enable(this.formElement());
    this.setSaving(false);
    this.adjustDialogDisplay(this.editMode);
    this.showCentered();
    this.bindCtrlEnterHandler(this.submit.bind(this));
    BS.Util.hide('info_row');
    if (this.editMode) {
      $j('#resource_name').bind('input propertychange', this.onNameChange);
    } else {
      $j('#resource_name').unbind('input propertychange', this.onNameChange);
    }
    if (this.canEdit) {
      BS.Util.show('resourceDialogSubmit')
    } else {
      Form.disable(this.formElement());
      BS.Util.hide('resourceDialogSubmit');
    }
    BS.MultilineProperties.updateVisible();
    $j('#resource_name').focus();
  },