2012-08-24, 02:45 AM
This code brings up some mycode.
I want to remove the first box where it asks "please enter a title for your spoiler" and only one box which is the second box which says "enter a text for your spoiler"
I can't seem to get it to only open the second prompt.
i got it with trial and error
I want to remove the first box where it asks "please enter a title for your spoiler" and only one box which is the second box which says "enter a text for your spoiler"
I can't seem to get it to only open the second prompt.
insertSoundCloud: function()
{
selectedText = this.getSelectedText($(this.textarea));
title = prompt("Please enter a title for your spoiler.", "");
if(title)
{
if(!selectedText)
{
text = prompt("Enter a text for your spoiler.", "");
}
else
{
text = selectedText;
}
if(title && text)
{
this.performInsert("[sc]"+text+"[/sc]", "", true, false);
}
}
},
i got it with trial and error