diff --git a/Products/zms/zpt/ZMS/manage_customizelanguagesform.zpt b/Products/zms/zpt/ZMS/manage_customizelanguagesform.zpt index 761ab0249..d2a57f47f 100644 --- a/Products/zms/zpt/ZMS/manage_customizelanguagesform.zpt +++ b/Products/zms/zpt/ZMS/manage_customizelanguagesform.zpt @@ -45,7 +45,7 @@ - +
@@ -77,7 +77,7 @@ - + @@ -95,7 +95,7 @@
- +
@@ -135,7 +135,7 @@ -
@@ -159,7 +159,7 @@ Key
- +
@@ -167,7 +167,7 @@
- +
@@ -242,17 +242,6 @@ /** * Submit form with given parameters. */ - function zmiFormSubmit(sender,d) { - var $fm = $(sender).closest("form"); - var html = ''; - for (var i in d) { - $('input[name="' + i + '"]',$fm).remove(); - html += ''; - } - $fm - .append(html) - .submit(); - } function zmiFormSubmit(sender,d) { var $fm = $(sender).closest("form"); if ('btn' in d) { @@ -342,10 +331,12 @@ // Process td:first-child of the clone $new_row.find('td.meta-sort').html(new_btn_html); - $new_row.removeAttr('class').attr('id',new_row_name); + $new_row.removeClass('row_insert').attr('id',new_row_name); // Insert the new row $new_row.insertBefore($where_insert); + // Set form as modified + $ZMI.set_form_modified($('input',$new_row)); // Reset the clone template $where_insert.find('input:not([type="checkbox"]),textarea').each(function() { $(this).val(undefined); diff --git a/Products/zms/zpt/ZMS/manage_users.zpt b/Products/zms/zpt/ZMS/manage_users.zpt index f87b112ab..ec9bd2806 100644 --- a/Products/zms/zpt/ZMS/manage_users.zpt +++ b/Products/zms/zpt/ZMS/manage_users.zpt @@ -271,10 +271,21 @@ function zmiModalInsertUserOpen(context) {
- - + +    - +
diff --git a/Products/zms/zpt/ZMSFormatProvider/manage_charformats.zpt b/Products/zms/zpt/ZMSFormatProvider/manage_charformats.zpt index 825179154..fa84a3b8f 100644 --- a/Products/zms/zpt/ZMSFormatProvider/manage_charformats.zpt +++ b/Products/zms/zpt/ZMSFormatProvider/manage_charformats.zpt @@ -54,7 +54,7 @@
- +
diff --git a/Products/zms/zpt/ZMSFormatProvider/manage_textformats.zpt b/Products/zms/zpt/ZMSFormatProvider/manage_textformats.zpt index 95e58e2c1..b28ee810e 100644 --- a/Products/zms/zpt/ZMSFormatProvider/manage_textformats.zpt +++ b/Products/zms/zpt/ZMSFormatProvider/manage_textformats.zpt @@ -63,7 +63,7 @@
- +
diff --git a/Products/zms/zpt/ZMSIndex/manage_main.zpt b/Products/zms/zpt/ZMSIndex/manage_main.zpt index f38e5d01c..83f2db1f6 100644 --- a/Products/zms/zpt/ZMSIndex/manage_main.zpt +++ b/Products/zms/zpt/ZMSIndex/manage_main.zpt @@ -35,7 +35,7 @@ function openWindow(url) { ZMSIndex
-
+
@@ -149,9 +149,9 @@ function openWindow(url) { tal:attributes="value python:zmscontext.operator_getattr(zmscontext,'index_names','')"/>
diff --git a/Products/zms/zpt/ZMSMetamodelProvider/manage_main.zpt b/Products/zms/zpt/ZMSMetamodelProvider/manage_main.zpt index cace397d8..9cc52f366 100644 --- a/Products/zms/zpt/ZMSMetamodelProvider/manage_main.zpt +++ b/Products/zms/zpt/ZMSMetamodelProvider/manage_main.zpt @@ -142,7 +142,7 @@
- + Back
@@ -202,7 +202,7 @@ + tal:attributes="class python:'form-group %s'%(request.get('attr_id','') and ( ( req_attr_id_match and request.get('attr_id')==objAttrId ) and 'zmi-selected table-warning' or ( ( not req_attr_id_match and ( len(request.get('attr_id'))>1 and ( request.get('attr_id') in objAttrId ) ) ) and 'zmi-selected table-warning' or '' )));"> @@ -331,7 +331,7 @@ - + @@ -386,7 +386,8 @@ - + - + @@ -942,10 +943,12 @@ $(function(){ // Process td:first-child of the clone $new_row.find('td.meta-sort').html(new_btn_html); - $new_row.removeAttr('class').attr('id',new_row_name); + $new_row.removeClass('row_insert').attr('id',new_row_name); // Insert the new row $new_row.insertBefore($where_insert); + // Set form as modified + $ZMI.set_form_modified($('.meta-id input',$new_row)); // Reset the clone template $where_insert.find('input:not([type="checkbox"]),select,textarea').each(function() { $(this).val(undefined); diff --git a/Products/zms/zpt/ZMSMetamodelProvider/manage_metas.zpt b/Products/zms/zpt/ZMSMetamodelProvider/manage_metas.zpt index a9bce00f6..bafe9cbf6 100644 --- a/Products/zms/zpt/ZMSMetamodelProvider/manage_metas.zpt +++ b/Products/zms/zpt/ZMSMetamodelProvider/manage_metas.zpt @@ -95,7 +95,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -182,13 +182,13 @@
-