Changes

Jump to navigation Jump to search
no edit summary
Line 54: Line 54:  
e.preventDefault();
 
e.preventDefault();
 
if(dflt.type == "item") {
 
if(dflt.type == "item") {
             mw.notify("on click activated")
+
             mw.notify("on click activated item")
 
    var selection = $(this).prev('input').data('entityselector').selectedEntity();
 
    var selection = $(this).prev('input').data('entityselector').selectedEntity();
 
    quickpresets_additemstatement(qid, dflt.pid, dflt.name, selection.id.substring(1), selection.label);
 
    quickpresets_additemstatement(qid, dflt.pid, dflt.name, selection.id.substring(1), selection.label);
 
}
 
}
 
else if(dflt.type == "string") {
 
else if(dflt.type == "string") {
mw.notify("on click activated")
+
mw.notify("on click activated string")
 +
mw.notify("$(this).prev('input') "+$(this).prev('input'))
 
    quickpresets_addstringstatement(qid, dflt.pid, dflt.name, $(this).prev('input')[0].value);
 
    quickpresets_addstringstatement(qid, dflt.pid, dflt.name, $(this).prev('input')[0].value);
 
}
 
}

Navigation menu