Index: trunk/extensions/PageSchemas/specials/PS_EditSchema.php |
— | — | @@ -45,8 +45,10 @@ |
46 | 46 | });
|
47 | 47 | jQuery('#templatesList').append(newField);
|
48 | 48 | }
|
| 49 | +function clickcheckbox(form){
|
| 50 | +alert('Handler for .change() uncalled.');
|
| 51 | +}
|
49 | 52 |
|
50 | | -
|
51 | 53 | jQuery(document).ready(function() {
|
52 | 54 | jQuery(".deleteField").click( function() {
|
53 | 55 | // Remove the encompassing div for this instance.
|
— | — | @@ -57,14 +59,25 @@ |
58 | 60 | // Remove the encompassing div for this instance.
|
59 | 61 | jQuery(this).closest(".templateBox")
|
60 | 62 | .fadeOut('fast', function() { jQuery(this).remove(); });
|
61 | | - });
|
| 63 | + });
|
62 | 64 | });
|
| 65 | +
|
63 | 66 | </script>
|
64 | 67 |
|
65 | 68 | END;
|
66 | 69 | $wgOut->addScript( $jsText );
|
67 | 70 | }
|
68 | | -
|
| 71 | +/*
|
| 72 | +@TODO :Code which can be useful
|
| 73 | +jQuery("#is_list_1").click(function() {
|
| 74 | + if (jQuery("#is_list_1").is(":checked"))
|
| 75 | + {
|
| 76 | + alert('Handler for .change() called.');
|
| 77 | + }else{
|
| 78 | + alert('Handler for .change() uncalled.');
|
| 79 | + }
|
| 80 | + });
|
| 81 | +*/
|
69 | 82 | function execute( $category ) {
|
70 | 83 | global $wgRequest, $wgOut;
|
71 | 84 | global $wgSkin;
|
— | — | @@ -109,9 +122,10 @@ |
110 | 123 | <p>Field name: <input size="15" name="name_1">
|
111 | 124 | Display label: <input size="15" name="label_1">
|
112 | 125 | </p>
|
113 | | - <p><input type="checkbox" name="is_list_1"/>
|
| 126 | + <p><input type="checkbox" name="is_list_1" onclick="clickcheckbox(this)" />
|
114 | 127 | This field can hold a list of values
|
115 | 128 | </p>
|
| 129 | + <p>Delimiter for values (default is ","): <input type="text" name="delimiter_1" /> </p>
|
116 | 130 | <p>Additional XML:
|
117 | 131 | <textarea rows=4 style="width: 100%" name="add_xml_1"></textarea>
|
118 | 132 | </p>
|
— | — | @@ -157,7 +171,9 @@ |
158 | 172 | Display label: <input size="15" name="label_starter">
|
159 | 173 | </p>
|
160 | 174 | <p><input type="checkbox" name="is_list_starter" /> This field can hold a list of values, separated by commas
|
161 | | -    <p>Additional XML:
|
| 175 | +   
|
| 176 | + <p>Delimiter for values (default is ","): <input type="text" name="delimiter_starter" /> </p>
|
| 177 | + <p>Additional XML:
|
162 | 178 | <textarea rows=4 style="width: 100%" name="add_xml_starter"></textarea>
|
163 | 179 | </p>
|
164 | 180 | <input type="button" value="Remove field" class="deleteField" />
|