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
49e153ec
Commit
49e153ec
authored
May 16, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Common] Change api method showMessage (2 parameter will be deprecated).
parent
e4d7b7d9
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
21 additions
and
31 deletions
+21
-31
apps/api/documents/api.js
apps/api/documents/api.js
+3
-13
apps/documenteditor/embed/js/ApplicationController.js
apps/documenteditor/embed/js/ApplicationController.js
+4
-4
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+1
-1
apps/documenteditor/mobile/app/controller/Main.js
apps/documenteditor/mobile/app/controller/Main.js
+1
-1
apps/presentationeditor/embed/js/ApplicationController.js
apps/presentationeditor/embed/js/ApplicationController.js
+4
-4
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+1
-1
apps/presentationeditor/mobile/app/controller/Main.js
apps/presentationeditor/mobile/app/controller/Main.js
+1
-1
apps/spreadsheeteditor/embed/js/ApplicationController.js
apps/spreadsheeteditor/embed/js/ApplicationController.js
+4
-4
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+1
-1
apps/spreadsheeteditor/mobile/app/controller/Main.js
apps/spreadsheeteditor/mobile/app/controller/Main.js
+1
-1
No files found.
apps/api/documents/api.js
View file @
49e153ec
...
...
@@ -409,21 +409,12 @@
});
};
var
_showError
=
function
(
title
,
msg
)
{
_showMessage
(
title
,
msg
,
"
error
"
);
};
// severity could be one of: "error", "info" or "warning"
var
_showMessage
=
function
(
title
,
msg
,
severity
)
{
if
(
typeof
severity
!==
'
string
'
)
{
severity
=
"
info
"
;
}
var
_showMessage
=
function
(
title
,
msg
)
{
msg
=
msg
||
title
;
_sendCommand
({
command
:
'
showMessage
'
,
data
:
{
title
:
title
,
msg
:
msg
,
severity
:
severity
msg
:
msg
}
});
};
...
...
@@ -540,7 +531,6 @@
};
return
{
showError
:
_showError
,
showMessage
:
_showMessage
,
processSaveResult
:
_processSaveResult
,
processRightsChange
:
_processRightsChange
,
...
...
apps/documenteditor/embed/js/ApplicationController.js
View file @
49e153ec
...
...
@@ -402,14 +402,14 @@ var ApplicationController = new(function(){
Common
.
Analytics
.
trackEvent
(
'
Internal Error
'
,
id
.
toString
());
}
function
onExternal
Error
(
error
)
{
function
onExternal
Message
(
error
)
{
if
(
error
)
{
hidePreloader
();
$
(
'
#id-error-mask-title
'
).
text
(
error
.
title
);
$
(
'
#id-error-mask-title
'
).
text
(
'
Error
'
);
$
(
'
#id-error-mask-text
'
).
text
(
error
.
msg
);
$
(
'
#id-error-mask
'
).
css
(
'
display
'
,
'
block
'
);
Common
.
Analytics
.
trackEvent
(
'
External Error
'
,
error
.
title
);
Common
.
Analytics
.
trackEvent
(
'
External Error
'
);
}
}
...
...
@@ -497,7 +497,7 @@ var ApplicationController = new(function(){
// Initialize api gateway
Common
.
Gateway
.
on
(
'
init
'
,
loadConfig
);
Common
.
Gateway
.
on
(
'
opendocument
'
,
loadDocument
);
Common
.
Gateway
.
on
(
'
show
error
'
,
onExternalError
);
Common
.
Gateway
.
on
(
'
show
message
'
,
onExternalMessage
);
Common
.
Gateway
.
ready
();
}
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
49e153ec
...
...
@@ -1142,7 +1142,7 @@ define([
msg
.
msg
=
(
msg
.
msg
).
toString
();
this
.
showTips
([
msg
.
msg
.
charAt
(
0
).
toUpperCase
()
+
msg
.
msg
.
substring
(
1
)]);
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
,
msg
.
title
);
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
);
}
},
...
...
apps/documenteditor/mobile/app/controller/Main.js
View file @
49e153ec
...
...
@@ -698,7 +698,7 @@ define([
message
:
[
msg
.
msg
.
charAt
(
0
).
toUpperCase
()
+
msg
.
msg
.
substring
(
1
)]
});
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
,
msg
.
title
);
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
);
}
},
...
...
apps/presentationeditor/embed/js/ApplicationController.js
View file @
49e153ec
...
...
@@ -506,14 +506,14 @@ var ApplicationController = new(function(){
Common
.
Analytics
.
trackEvent
(
'
Internal Error
'
,
id
.
toString
());
}
function
onExternal
Error
(
error
)
{
function
onExternal
Message
(
error
)
{
if
(
error
)
{
hidePreloader
();
$
(
'
#id-error-mask-title
'
).
text
(
error
.
title
);
$
(
'
#id-error-mask-title
'
).
text
(
'
Error
'
);
$
(
'
#id-error-mask-text
'
).
text
(
error
.
msg
);
$
(
'
#id-error-mask
'
).
css
(
'
display
'
,
'
block
'
);
Common
.
Analytics
.
trackEvent
(
'
External Error
'
,
error
.
title
);
Common
.
Analytics
.
trackEvent
(
'
External Error
'
);
}
}
...
...
@@ -573,7 +573,7 @@ var ApplicationController = new(function(){
// Initialize api gateway
Common
.
Gateway
.
on
(
'
init
'
,
loadConfig
);
Common
.
Gateway
.
on
(
'
opendocument
'
,
loadDocument
);
Common
.
Gateway
.
on
(
'
show
error
'
,
onExternalError
);
Common
.
Gateway
.
on
(
'
show
message
'
,
onExternalMessage
);
Common
.
Gateway
.
ready
();
}
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
49e153ec
...
...
@@ -899,7 +899,7 @@ define([
msg
.
msg
=
(
msg
.
msg
).
toString
();
this
.
showTips
([
msg
.
msg
.
charAt
(
0
).
toUpperCase
()
+
msg
.
msg
.
substring
(
1
)]);
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
,
msg
.
title
);
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
);
}
},
...
...
apps/presentationeditor/mobile/app/controller/Main.js
View file @
49e153ec
...
...
@@ -659,7 +659,7 @@ define([
message
:
[
msg
.
msg
.
charAt
(
0
).
toUpperCase
()
+
msg
.
msg
.
substring
(
1
)]
});
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
,
msg
.
title
);
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
);
}
},
...
...
apps/spreadsheeteditor/embed/js/ApplicationController.js
View file @
49e153ec
...
...
@@ -414,14 +414,14 @@ var ApplicationController = new(function(){
Common
.
Analytics
.
trackEvent
(
'
Internal Error
'
,
id
.
toString
());
}
function
onExternal
Error
(
error
)
{
function
onExternal
Message
(
error
)
{
if
(
error
)
{
hidePreloader
();
$
(
'
#id-error-mask-title
'
).
text
(
error
.
title
);
$
(
'
#id-error-mask-title
'
).
text
(
'
Error
'
);
$
(
'
#id-error-mask-text
'
).
text
(
error
.
msg
);
$
(
'
#id-error-mask
'
).
css
(
'
display
'
,
'
block
'
);
Common
.
Analytics
.
trackEvent
(
'
External Error
'
,
error
.
title
);
Common
.
Analytics
.
trackEvent
(
'
External Error
'
);
}
}
...
...
@@ -519,7 +519,7 @@ var ApplicationController = new(function(){
// Initialize api gateway
Common
.
Gateway
.
on
(
'
init
'
,
loadConfig
);
Common
.
Gateway
.
on
(
'
opendocument
'
,
loadDocument
);
Common
.
Gateway
.
on
(
'
show
error
'
,
onExternalError
);
Common
.
Gateway
.
on
(
'
show
message
'
,
onExternalMessage
);
Common
.
Gateway
.
ready
();
}
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
49e153ec
...
...
@@ -965,7 +965,7 @@ define([
msg
.
msg
=
(
msg
.
msg
).
toString
();
this
.
showTips
([
msg
.
msg
.
charAt
(
0
).
toUpperCase
()
+
msg
.
msg
.
substring
(
1
)]);
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
,
msg
.
title
);
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
);
}
},
...
...
apps/spreadsheeteditor/mobile/app/controller/Main.js
View file @
49e153ec
...
...
@@ -676,7 +676,7 @@ define([
message
:
[
msg
.
msg
.
charAt
(
0
).
toUpperCase
()
+
msg
.
msg
.
substring
(
1
)]
});
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
,
msg
.
title
);
Common
.
component
.
Analytics
.
trackEvent
(
'
External Error
'
);
}
},
...
...
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