Skip to content

Commit a538705

Browse files
committed
(bluefox) small fix
1 parent 48c2b5b commit a538705

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

admin/tab.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,14 +1054,14 @@ function Scripts(main) {
10541054
});
10551055
}
10561056
} else {
1057-
//var prefix;
1057+
// var prefix;
10581058

1059-
_obj.common.engineType = newCommon.engineType || _obj.common.engineType || 'Javascript/js';
1060-
var parts = _obj.common.engineType.split('/');
1059+
// var parts = _obj.common.engineType.split('/');
10611060

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

1064-
if (_obj) {
1063+
if (_obj && _obj.common) {
1064+
_obj.common.engineType = newCommon.engineType || _obj.common.engineType || 'Javascript/js';
10651065
that.main.socket.emit('delObject', oldId, function (err) {
10661066
if (err) {
10671067
that.main.showError(err);
@@ -2122,7 +2122,7 @@ function Scripts(main) {
21222122

21232123
if (this.main.config['script-editor-wrap-lines']) $('#edit-wrap-lines').prop('checked', true);
21242124
if (this.main.config['script-editor-dialog-wrap-lines']) $('#dialog-edit-wrap-lines').prop('checked', true);
2125-
2125+
21262126
$('#edit-check-blocks').button({
21272127
icons: {
21282128
primary: 'ui-icon-check'
@@ -2408,7 +2408,7 @@ function Scripts(main) {
24082408
}
24092409

24102410
this.editorDialog.getSession().setUseWrapMode($('#dialog-edit-wrap-lines').prop('checked'));
2411-
2411+
24122412
this.$dialogScript
24132413
.dialog('option', 'width', width)
24142414
.dialog('option', 'height', height)
@@ -2417,7 +2417,7 @@ function Scripts(main) {
24172417
this.editorDialog.focus();
24182418

24192419
that.editorDialog._isReturn = isReturn;
2420-
2420+
24212421
setTimeout(function () {
24222422
that.editorDialog._changed = false;
24232423
$('#dialog_script_save').button('disable');

0 commit comments

Comments
 (0)