fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preventing browser from removing node when last character gets deleted via backspace
[fnpeditor.git]
/
modules
/
indicator
/
indicator.js
diff --git
a/modules/indicator/indicator.js
b/modules/indicator/indicator.js
index
0e9bcdc
..
f395f83
100644
(file)
--- a/
modules/indicator/indicator.js
+++ b/
modules/indicator/indicator.js
@@
-21,8
+21,11
@@
return function(sandbox) {
showMessage: function(msg) {
\r
view.dom.html('<span>' + msg + '</span>').show();
\r
},
\r
showMessage: function(msg) {
\r
view.dom.html('<span>' + msg + '</span>').show();
\r
},
\r
- clearMessage: function() {
\r
+ clearMessage: function(
report
) {
\r
view.dom.empty();
\r
view.dom.empty();
\r
+ if(report && report.message) {
\r
+ view.dom.html('<span class="success">' + report.message + '</span>').show().fadeOut(4000);
\r
+ }
\r
}
\r
\r
}
\r
}
\r
\r
}
\r