Patch 3301623 Clear button does not work
This commit is contained in:

committed by
Marc Delisle

parent
aa8c5f56d2
commit
20a04b2f2b
@@ -753,8 +753,6 @@ function insertQuery(queryType) {
|
|||||||
query = "UPDATE `" + table + "` SET " + editDis + " WHERE 1";
|
query = "UPDATE `" + table + "` SET " + editDis + " WHERE 1";
|
||||||
} else if(queryType == "delete") {
|
} else if(queryType == "delete") {
|
||||||
query = "DELETE FROM `" + table + "` WHERE 1";
|
query = "DELETE FROM `" + table + "` WHERE 1";
|
||||||
} else if(queryType == "clear") {
|
|
||||||
query = '';
|
|
||||||
}
|
}
|
||||||
document.sqlform.sql_query.value = query;
|
document.sqlform.sql_query.value = query;
|
||||||
sql_box_locked = false;
|
sql_box_locked = false;
|
||||||
@@ -1145,7 +1143,11 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.sqlbutton').click(function(evt){
|
$('.sqlbutton').click(function(evt){
|
||||||
insertQuery(evt.target.id);
|
if (evt.target.id == 'clear') {
|
||||||
|
$('#sqlquery').val('');
|
||||||
|
} else {
|
||||||
|
insertQuery(evt.target.id);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user