Final major add for working buttons in IE

This commit is contained in:
John McLear 2011-07-19 17:42:19 +01:00 committed by Peter 'Pita' Martischka
parent cf255b2979
commit a07bd76625
1 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,6 @@
* limitations under the License. * limitations under the License.
*/ */
var padeditbar = (function() var padeditbar = (function()
{ {
@ -84,14 +83,15 @@ var padeditbar = (function()
}, },
isEnabled: function() isEnabled: function()
{ {
return !$("#editbar").hasClass('disabledtoolbar'); // return !$("#editbar").hasClass('disabledtoolbar');
return true;
}, },
disable: function() disable: function()
{ {
$("#editbar").addClass('disabledtoolbar').removeClass("enabledtoolbar"); $("#editbar").addClass('disabledtoolbar').removeClass("enabledtoolbar");
}, },
toolbarClick: function(cmd) toolbarClick: function(cmd)
{ {
if (self.isEnabled()) if (self.isEnabled())
{ {
if(cmd == "showusers") if(cmd == "showusers")
@ -99,7 +99,7 @@ var padeditbar = (function()
self.toogleDropDown("users"); self.toogleDropDown("users");
} }
else if (cmd == 'embed') else if (cmd == 'embed')
{ {
var padurl = document.location; var padurl = document.location;
$('#embedinput').val("<iframe src='" + padurl + "' width=500 height=400>"); $('#embedinput').val("<iframe src='" + padurl + "' width=500 height=400>");
self.toogleDropDown("embed"); self.toogleDropDown("embed");