Skip to content

Commit

Permalink
(bluefox) small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Aug 10, 2017
1 parent 48c2b5b commit a538705
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions admin/tab.js
Expand Up @@ -1054,14 +1054,14 @@ function Scripts(main) {
});
}
} else {
//var prefix;
// var prefix;

_obj.common.engineType = newCommon.engineType || _obj.common.engineType || 'Javascript/js';
var parts = _obj.common.engineType.split('/');
// var parts = _obj.common.engineType.split('/');

//prefix = 'script.' + (parts[1] || parts[0]) + '.';
// prefix = 'script.' + (parts[1] || parts[0]) + '.';

if (_obj) {
if (_obj && _obj.common) {
_obj.common.engineType = newCommon.engineType || _obj.common.engineType || 'Javascript/js';
that.main.socket.emit('delObject', oldId, function (err) {
if (err) {
that.main.showError(err);
Expand Down Expand Up @@ -2122,7 +2122,7 @@ function Scripts(main) {

if (this.main.config['script-editor-wrap-lines']) $('#edit-wrap-lines').prop('checked', true);
if (this.main.config['script-editor-dialog-wrap-lines']) $('#dialog-edit-wrap-lines').prop('checked', true);

$('#edit-check-blocks').button({
icons: {
primary: 'ui-icon-check'
Expand Down Expand Up @@ -2408,7 +2408,7 @@ function Scripts(main) {
}

this.editorDialog.getSession().setUseWrapMode($('#dialog-edit-wrap-lines').prop('checked'));

this.$dialogScript
.dialog('option', 'width', width)
.dialog('option', 'height', height)
Expand All @@ -2417,7 +2417,7 @@ function Scripts(main) {
this.editorDialog.focus();

that.editorDialog._isReturn = isReturn;

setTimeout(function () {
that.editorDialog._changed = false;
$('#dialog_script_save').button('disable');
Expand Down

0 comments on commit a538705

Please sign in to comment.