fixed typos...

This commit is contained in:
Jean-Tiare Le Bigot 2012-03-01 20:56:22 +01:00
parent 9f70e729e0
commit 1d8dd16a21

View file

@ -158,10 +158,9 @@ var padeditbar = (function()
{
var value = document.getElementById("style-select").value;
var style = /([a-z]+)-([12345678])/.exec(value);
if(style[0]=="title")
if(style[1]=="title")
{
alert(style[1]);
ace.ace_doInsertTitle(Number(style[1]));
ace.ace_doInsertTitle(Number(style[2]));
}
}
else if (cmd == 'clearauthorship')