Skip to content
Browse files

Some small changes

remove highlighter
  • Loading branch information...
1 parent f2a287d commit 765ac408bbdbf413c0120a67a2f1771f1e829445 @Babelfisch Babelfisch committed Apr 17, 2012
View
2 system/modules/fe_editor/html/css/fee.css
@@ -91,7 +91,7 @@
text-decoration: none;
text-transform: none;
color: white;
- background-color: gray;
+ background-color: #999;
}
.fee_toolbar a::after
{
View
36 system/modules/fe_editor/html/js/fee.js
@@ -1,4 +1,21 @@
-window.addEvent('domready', function() {
+/**
+ * @package fe_editor
+ *
+ * @author Mario Müller
+ * @since 2012-04-17
+ * @version 1.1.0
+ *
+ * This package requires
+ * - MooTools 1.4 >
+ * - MooTools More Assets
+ *
+ * @license http://opensource.org/licenses/lgpl-3.0.html
+ *
+ * Copyright (c) 2012 Lingo4you, <http://www.lingo4u.de/>
+ *
+ */
+
+ window.addEvent('domready', function() {
feeSettings = new Element('div',
{
@@ -116,23 +133,18 @@ window.addEvent('domready', function() {
$$('.fee_content_edit a')
.addEvent('mouseenter', function(e) {
this.getParent('.fe_editor')
- .setStyle('outline-color', 'red')
- .highlight();
+ .setStyle('outline-color', 'red');
})
.addEvent('mouseleave', function(e) {
this.getParent('.fe_editor').setStyle('outline-color', 'black');
});
$$('.fee_content_add a')
.addEvent('mouseenter', function(e) {
- //this.getParent('.fe_editor').store(this.getParent('.fe_editor').getStyle('border-bottom'));
- //this.getParent('.fe_editor').setStyle('border-bottom', '10px solid green');
this.getParent('.fe_editor')
- .setStyle('outline-color', 'green')
- .highlight('#0f0');
+ .setStyle('outline-color', 'green');
})
.addEvent('mouseleave', function(e) {
- //this.getParent('.fe_editor').setStyle('border-bottom', this.getParent('.fe_editor').retrieve('border-bottom'));
this.getParent('.fe_editor').setStyle('outline-color', 'black');
});
@@ -142,13 +154,10 @@ window.addEvent('domready', function() {
.setStyles({
'outline': '2px dotted red',
'outline-offset': '-2px'
- })
- .highlight();
- //this.getParent('.fe_editor').setStyle('outline', 'none');
+ });
})
.addEvent('mouseleave', function(e) {
this.getParent('.mod_article').setStyle('outline', 'none');
- //this.getParent('.fe_editor').setStyle('outline', '2px dotted black');
});
$$('.fee_page_edit a')
@@ -158,11 +167,8 @@ window.addEvent('domready', function() {
'outline': '5px dotted red',
'outline-offset': '-5px',
});
- //this.getParent('.fe_editor').setStyle('outline', 'none');
})
.addEvent('mouseleave', function(e) {
$(document.body).setStyle('outline', 'none');
- //this.getParent('.fe_editor').setStyle('outline', '2px dotted black');
});
-
});
View
18 system/modules/fe_editor/html/js/fee.min.js
@@ -1,3 +1,19 @@
+/**
+ * @package fe_editor
+ *
+ * @author Mario Müller
+ * @since 2012-04-17
+ * @version 1.1.0
+ *
+ * This package requires
+ * - MooTools 1.4 >
+ * - MooTools More Assets
+ *
+ * @license http://opensource.org/licenses/lgpl-3.0.html
+ *
+ * Copyright (c) 2012 Lingo4you, <http://www.lingo4u.de/>
+ *
+ */
window.addEvent('domready',function(){feeSettings=new Element('div',{'id':'fee_settings'});feeSettings.inject($(document.body),'top');feeSettings.setState=function(checked,flash)
{this.setStyle('background-image','url(system/modules/fe_editor/html/images/application'+(checked==1?'_edit.png':'.png')+')');this.store('checked',checked);Cookie.write('fee_checked',checked);if(checked==1)
@@ -13,4 +29,4 @@ else
{window.location.reload();}}}});}
else
{$$('a.cerabox').set('target','_blank');}
-$$('.fee_toolbar a').addEvent('mouseenter',function(e){this.getParent('div').getChildren('p').set('text',this.get('title'));this.set('title','');}).addEvent('mouseleave',function(e){this.set('title',this.getParent('div').getChildren('p')[0].get('text'));});$$('.fee_content_edit a').addEvent('mouseenter',function(e){this.getParent('.fe_editor').setStyle('outline-color','red').highlight();}).addEvent('mouseleave',function(e){this.getParent('.fe_editor').setStyle('outline-color','black');});$$('.fee_content_add a').addEvent('mouseenter',function(e){this.getParent('.fe_editor').setStyle('outline-color','green').highlight('#0f0');}).addEvent('mouseleave',function(e){this.getParent('.fe_editor').setStyle('outline-color','black');});$$('.fee_article_edit a').addEvent('mouseenter',function(e){this.getParent('.mod_article').setStyles({'outline':'2px dotted red','outline-offset':'-2px'}).highlight();}).addEvent('mouseleave',function(e){this.getParent('.mod_article').setStyle('outline','none');});$$('.fee_page_edit a').addEvent('mouseenter',function(e){$(document.body).setStyles({'outline':'5px dotted red','outline-offset':'-5px',});}).addEvent('mouseleave',function(e){$(document.body).setStyle('outline','none');});});
+$$('.fee_toolbar a').addEvent('mouseenter',function(e){this.getParent('div').getChildren('p').set('text',this.get('title'));this.set('title','');}).addEvent('mouseleave',function(e){this.set('title',this.getParent('div').getChildren('p')[0].get('text'));});$$('.fee_content_edit a').addEvent('mouseenter',function(e){this.getParent('.fe_editor').setStyle('outline-color','red');}).addEvent('mouseleave',function(e){this.getParent('.fe_editor').setStyle('outline-color','black');});$$('.fee_content_add a').addEvent('mouseenter',function(e){this.getParent('.fe_editor').setStyle('outline-color','green');}).addEvent('mouseleave',function(e){this.getParent('.fe_editor').setStyle('outline-color','black');});$$('.fee_article_edit a').addEvent('mouseenter',function(e){this.getParent('.mod_article').setStyles({'outline':'2px dotted red','outline-offset':'-2px'});}).addEvent('mouseleave',function(e){this.getParent('.mod_article').setStyle('outline','none');});$$('.fee_page_edit a').addEvent('mouseenter',function(e){$(document.body).setStyles({'outline':'5px dotted red','outline-offset':'-5px',});}).addEvent('mouseleave',function(e){$(document.body).setStyle('outline','none');});});

0 comments on commit 765ac40

Please sign in to comment.
Something went wrong with that request. Please try again.