Changeset 4466
- Timestamp:
- 01/11/12 15:29:25 (4 months ago)
- Location:
- plugins/apostrophePlugin/branches/1.5
- Files:
-
- 4 modified
-
lib/widget/aWidgetFormJQueryDate.class.php (modified) (2 diffs)
-
modules/a/templates/_globalJavascripts.php (modified) (1 diff)
-
web/js/a.js (modified) (1 diff)
-
web/js/timepicker.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostrophePlugin/branches/1.5/lib/widget/aWidgetFormJQueryDate.class.php
r3508 r4466 125 125 \$(day).val(''); 126 126 \$(year).val(''); 127 \$(month).change(); 128 \$(day).change(); 129 \$(year).change(); 127 130 return; 128 131 } … … 132 135 \$(day).val(components[2].replace(/^0+/, '')); 133 136 \$(year).val(components[3].replace(/^0+/, '')); 137 \$(month).change(); 138 \$(day).change(); 139 \$(year).change(); 134 140 135 141 // Something we can bind to update other fields -
plugins/apostrophePlugin/branches/1.5/modules/a/templates/_globalJavascripts.php
r4313 r4466 21 21 <?php // A handful of fundamental improvements like a-autosubmit for anchor buttons ?> 22 22 <?php a_js_call('apostrophe.smartCSS()') ?> 23 <?php // Warn the user if they try to leave the page and it has open slot editors on it ?> 24 <?php a_js_call('apostrophe.onBeforeUnload()') ?> 23 25 <?php // End of body - time to emit all of the queued JS as one script block ?> 24 26 -
plugins/apostrophePlugin/branches/1.5/web/js/a.js
r4459 r4466 2274 2274 }; 2275 2275 2276 this.onBeforeUnload = function() 2277 { 2278 $(window).unbind('beforeunload.apostrophe').bind('beforeunload.apostrophe', function() { 2279 // Event first since it gets both classes 2280 if ($('.a-admin-event-form form').data('changed')) 2281 { 2282 return "You have not saved your changes to the settings for this event in the form at left. Any edits you have made will be lost if you do not save them first before leaving the page."; 2283 } 2284 if ($('.a-admin-blog-post-form form').data('changed')) 2285 { 2286 return "You have not saved your changes to the settings for this blog post in the form at left. Any edits you have made will be lost if you do not save them first before leaving the page."; 2287 } 2288 if ($('.a-slot.a-editing').length) 2289 { 2290 return "You are still editing content. Any edits you have made will be lost if you do not save them first before leaving the page."; 2291 } 2292 }); 2293 } 2294 2276 2295 // Breaks the url into a stem (everything before the query, inclusive of the ?), a query 2277 2296 // (the encoded query string), and queryData (the query string parsed into an object) -
plugins/apostrophePlugin/branches/1.5/web/js/timepicker.js
r3480 r4466 206 206 $(inputs[0]).val(time.hours); 207 207 $(inputs[1]).val(time.minutes); 208 $(inputs[0]).change(); 209 $(inputs[1]).change(); 208 210 } 209 211 }

