Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
842f9027
Commit
842f9027
authored
Aug 08, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PE] Edit ole-objects.
parent
a04a34f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
apps/presentationeditor/main/app/view/ImageSettings.js
apps/presentationeditor/main/app/view/ImageSettings.js
+4
-5
No files found.
apps/presentationeditor/main/app/view/ImageSettings.js
View file @
842f9027
...
...
@@ -111,8 +111,8 @@ define([
},
this
));
this
.
btnInsertFromUrl
.
on
(
'
click
'
,
_
.
bind
(
this
.
insertFromUrl
,
this
));
this
.
btnEditObject
.
on
(
'
click
'
,
_
.
bind
(
function
(
btn
){
//
if (this.api) this.api.asc_pluginRun(this._originalProps.asc_getPluginGuid(), 0, this._originalProps.asc_getPluginData());
//
this.fireEvent('editcomplete', this);
if
(
this
.
api
)
this
.
api
.
asc_pluginRun
(
this
.
_originalProps
.
asc_getPluginGuid
(),
0
,
this
.
_originalProps
.
asc_getPluginData
());
this
.
fireEvent
(
'
editcomplete
'
,
this
);
},
this
));
$
(
this
.
el
).
on
(
'
click
'
,
'
#image-advanced-link
'
,
_
.
bind
(
this
.
openAdvancedSettings
,
this
));
},
...
...
@@ -180,9 +180,8 @@ define([
}
if
(
this
.
_state
.
isOleObject
)
{
// var plugin = DE.getCollection('Common.Collections.Plugins').findWhere({guid: pluginGuid});
// this.btnEditObject.setDisabled(plugin===null || plugin ===undefined);
this
.
btnEditObject
.
setDisabled
(
true
);
var
plugin
=
PE
.
getCollection
(
'
Common.Collections.Plugins
'
).
findWhere
({
guid
:
pluginGuid
});
this
.
btnEditObject
.
setDisabled
(
plugin
===
null
||
plugin
===
undefined
);
}
else
{
this
.
btnInsertFromUrl
.
setDisabled
(
pluginGuid
===
null
);
this
.
btnInsertFromFile
.
setDisabled
(
pluginGuid
===
null
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment