diff options
author | Sebastian Silva <sebastian@sugarlabs.org> | 2011-10-12 01:03:11 (GMT) |
---|---|---|
committer | Sebastian Silva <sebastian@sugarlabs.org> | 2011-10-12 01:03:11 (GMT) |
commit | 1a4267444e34ad5e8a90864e396d851f083571b0 (patch) | |
tree | 47943f818b6a573ed3debf4c2b3153a194d51ff2 /websdk/static/js/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js | |
parent | fe1a1eb79bf0f1df8bbc56d2402e32061af79d06 (diff) |
Tidy up and make Gecko default.
Diffstat (limited to 'websdk/static/js/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js')
-rw-r--r-- | websdk/static/js/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/websdk/static/js/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js b/websdk/static/js/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js deleted file mode 100644 index 2c71ba5..0000000 --- a/websdk/static/js/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - * WYMeditor : what you see is What You Mean web-based editor - * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/ - * Dual licensed under the MIT (MIT-license.txt) - * and GPL (GPL-license.txt) licenses. - * - * For further information visit: - * http://www.wymeditor.org/ - * - * File Name: - * jquery.wymeditor.hovertools.js - * hovertools plugin for WYMeditor - * - * File Authors: - * Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg) - */ - -//Extend WYMeditor -WYMeditor.editor.prototype.hovertools = function() { - - var wym = this; - - //bind events on buttons - jQuery(this._box).find(this._options.toolSelector).hover( - function() { - wym.status(jQuery(this).html()); - }, - function() { - wym.status(' '); - } - ); - - //classes: add/remove a style attr to matching elems - //while mouseover/mouseout - jQuery(this._box).find(this._options.classSelector).hover( - function() { - var aClasses = eval(wym._options.classesItems); - var sName = jQuery(this).attr(WYMeditor.NAME); - var oClass = WYMeditor.Helper.findByName(aClasses, sName); - - if(oClass){ - jqexpr = oClass.expr; - //don't use jQuery.find() on the iframe body - //because of MSIE + jQuery + expando issue (#JQ1143) - if(!jQuery.browser.msie) - jQuery(wym._doc).find(jqexpr).css('background-color','#cfc'); - } - }, - function() { - //don't use jQuery.find() on the iframe body - //because of MSIE + jQuery + expando issue (#JQ1143) - if(!jQuery.browser.msie) - jQuery(wym._doc).find('*').removeAttr('style'); - } - ); - -}; |