Commit f3d4ab48 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

check existing ID before changing ID.

parent 55c7aefd
......@@ -135,6 +135,11 @@
$(this).dialog("close");
},
Validate: function () {
var new_id = $("#id").val();
if (new_id !== element_id && $('#' + new_id).length > 0) {
alert('This ID is already used.');
return;
};
var data = {}, prefixed_property_id, property_element;
var updateDataPropertyList = function (property_list, data,
prefix) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment