Commit graph

4003 commits

Author SHA1 Message Date
2837612b49 Improved display of window title in Archive by calculating res.data.title more elaborately in Archive.main_action() 2011-05-29 13:55:47 +00:00
f51d2fb0ca Slightly modified last change by using Number() instead of parseFloat() 2011-05-28 15:29:32 +00:00
b28007a3aa Fixed bug in Metadata.getValue() when calculating a Date type value 2011-05-28 15:25:20 +00:00
8b852014a2 Removed display of concrete time values in global formatDate() 2011-05-21 17:04:02 +00:00
b0ab9f6ba2 * Added new formats to global formatDate() method: text and iso
* Changed format argument to text for modified sites on frontpage and content in history
 * Fixed assignment of Root.VERSION in Layout.getArchive()
2011-05-21 09:47:01 +00:00
9679f3d561 * Removed Site.longDateFormat and Site.shortDateFormat properties; date formatting is now completely delegated to the underlying JVM
* Removed <select> elements for long and short date formats in $Site.edit skin
 * Removed compatibility support for long and short date formats
 * Removed global getDateFormats() method and commented code in global formatDate() method
 * Slightly shortened <select> elements in site preferences again
2011-05-16 16:52:21 +00:00
84fd98200e * Rewrote global getTimeZones() method
* Rewrite client-side code for reformatting the time zone <select> element according to changes in global getTimeZones() method
 * Replaced “return false” with call for event.preventDefault() in client-side event-driven code
 * Rewrote global getDateFormats() and formatDate() methods – caution! getDateFormats() will be removed in the next commit because the dropdown menus in site preferences are obsolete; just committing the code for the record
2011-05-16 16:35:41 +00:00
0f7c8f53e1 * Slightly modified Story.content_macro() in compat to prevent leaking of param properties into HTML attributes
* Replaced req.data with req.params in Stories.create_action() and Images.create_action() to prevent leaking of unwanted data (e.g. http_*) to the database
* Renamed and refactored Story.setMetadata() to Story.setCustomContent()
* Renamed Story.isMetadata() to Story.isCustomContent()
2011-05-15 14:42:54 +00:00
5a05bc3d48 Added empty string as fallback for the feed channel description in Root.updates_xml_action() as new metadata could render a missing tagline as null 2011-05-08 12:03:12 +00:00
db1af9e7ce Upgrade to code from Crockford’s json2.js as of 23 Feb 2011 (see https://github.com/douglascrockford/JSON-js/blob/master/json2.js) 2011-05-08 11:52:02 +00:00
778921abed Added optional third argument defining a user to Admin.queue() 2011-05-08 11:46:14 +00:00
7b4e241cff Added padded JSON response to error handler 2011-05-04 13:50:44 +00:00
0580f0ae33 Replaced SHORTDATEFORMAT constant which since has been removed with literal date format string 2011-04-07 12:09:37 +00:00
4678f272b6 Implemented first draft of JSONP support for creating stories and images as a new part of the Antville API. I.e. it is now possible to create an image (cross-domain!) from within client-side JavaScript simply by calling e.g. Images.create_action() and also providing a name for the callback method in req.data.callback:
* Added JSON.pad() and JSON.sendPaddedResponse() methods
 * Added calls for JSON.sendPaddedResponse() in Stories.create_action() and Images.create_action()
2011-04-05 12:34:30 +00:00
468809b033 Added JSON.pad() method for wrapping data in a JSONP-compatible response 2011-04-04 18:16:12 +00:00
b5947d888a Changed way to invoke Feature.getPermission() by using Function.apply() with object instance and arguments array 2011-03-29 11:18:45 +00:00
cc4c31b46d * Added calls for HopObject.deleteMetadata() in HopObject.remove() methods of prototypes using Metadata
* Removed call for Site.processHref() method in Site.getStaticUrl() - still to be evaluated
 * Added call for Feature.getPermission() in Site.getPermission()
2011-03-29 10:54:19 +00:00
1ee2440f80 * Moved <script> element back to the page header for now – needs more care because some pages using JavaScript stopped from working correctly 2011-03-29 10:13:26 +00:00
e9b9391517 * Moved <script> element to the bottom of the page
* Replaced sidebar list of recent postings with recent comments and changed section title accordingly
2011-03-29 09:03:20 +00:00
78b32bde9f Added setting of HTTP status code 400 if an error occurs in Stories.create_action(); also see Images.create_action() in previous commit – experimental! 2011-03-29 08:59:20 +00:00
ab5e41ef30 * Added File.redirectOnUploadError() and File.redirectOnExceededQuota() methods
* Replaced redundant code with calls for new File methods in File, Files, Image and Images prototypes
 * Fixed bug in Image.getFileExtension() causing file types containing charset information from being processed correctly
 * Added check to Image.update() if getURL() returns data to allow post requests with no file upload at all (e.g. via curl)
 * Removed call for root.processHref() in Images.Default.Image() to reduce complexity – needs more evaluation, though
2011-03-29 08:52:31 +00:00
52eda0b11b Reverted rendering of login et al. pages back from root to the current site 2011-03-28 18:40:19 +00:00
28808135d4 Refactored plugin handling:
* Removed “extras” code because I just forgot I already implemented a Feature prototype
 * Added global <% feature %> macro calling the main() method of the desired feature
 * Added Feature.getPermission() method which can be invoked from HopObject.getPermission()
 * Refactored connect feature to work with modified Feature prototype
2011-03-24 01:54:21 +00:00
91b45b3732 Implemented basic extra handling (ie. plug-ins in Antville):
* Added global app.data.extras collection and registerExtra() method
 * Defined res.handlers.extra in HopObject.onRequest() handler to provide extra macros
 * Implemented reCAPTCHA for anonymously contacting an Antville member as proof of concept
2011-03-23 13:35:02 +00:00
8a83f406f8 Updated copyright and svn:keywords property 2011-03-23 12:28:35 +00:00
61df9ba586 Removed forced linebreak between label and creation date 2011-03-15 23:09:06 +00:00
2d0d0d2696 Fixed tiny bug when creating a file with the Api.metaWeblog.newMediaObject() method 2011-03-15 22:50:49 +00:00
f2631f8760 * Added Image.add() and File.add() methods similar to Story.add(), extending internal API
* Refactored Images.create_action(), File.create_action() and Api.metaWeblog.newMediaObject() methods using the new methods
2011-03-15 22:34:38 +00:00
08bcfdcb33 * Refactored Story.add() method to take the data struct as first and required argument, then optionally site and user
* Rewrote Importer reducing redundant code by using new Story.add() method
2011-03-15 22:07:24 +00:00
929ed609cb Rewrote Importer reducing redundant code by using new Story.add() method 2011-03-15 20:28:18 +00:00
2ca26e4f28 * Added Story.add() method as counterpart to Story.remove() and to establish kind of internal API
* Rewrote external API (Api prototype) reducing redundant code by calling Story.add() method
2011-03-15 20:22:08 +00:00
fe159c3112 Fixed bad security hole allowing anyone to reset a user’s password if the user id and e-mail address are known 2011-03-08 17:07:08 +00:00
6d7904c9ff Added correct settings for short and long date format patterns when initializing virgin installation 2011-03-01 12:58:50 +00:00
4a9017e251 Finally introduced Helma’s uploadSoftfail property to Antville – see http://groups.google.com/group/helma/msg/4455deb2e24e5d8a 2011-02-23 18:21:43 +00:00
73f21c0102 Added URL keyword to svn:keywords property 2011-02-23 16:30:34 +00:00
5888797569 Added URL keyword to svn:keywords property 2011-02-23 16:24:32 +00:00
3654e1c10a Fixed encoding issues 2011-02-23 16:03:33 +00:00
1d8b34a54a Trying to fix bloody file encoding... 2011-02-23 15:52:22 +00:00
7777a486de Refactored static URL handling by using static and staticMountpoint properties in apps.properties file instead of custom staticUrl and staticPath in app.properties – still experimental! 2011-02-23 15:17:52 +00:00
81e1790374 Added jsdoc comments 2011-02-23 14:43:25 +00:00
322365f59b Added Root.static_macro() method for easier construction of static URLs via macro 2011-02-23 14:42:41 +00:00
2cda27e26b Slightly edited wording of macro instruction to prevent confusion with layout images 2011-02-23 14:30:50 +00:00
e7b62aa607 * Removed invalid argument from String.isEmail() and String.isUrl() method calls in validateEmail() and validateUrl() methods
* Replaced lazy check for e-mail address in validateUrl() with call for String.isEmail()
2011-02-23 14:07:50 +00:00
66ec37f82a * Improved User.register() method by trimming name and email values before evaluating them
* Removed redundant check for an existing user in User.register()
2011-02-23 14:00:47 +00:00
7b15def263 Removed obsolete code in User.onLogout() method 2011-02-23 13:13:15 +00:00
9f855af0b0 Slightly modified Sql.SEARCH string 2011-02-20 22:08:47 +00:00
84b10afacb * Added tabindex attributes to login form
* Removed macro for testing Facebook connect feature
2011-02-20 22:07:43 +00:00
441230321d Slightly optimizd SQL statements for Archive prototype 2011-02-20 16:13:56 +00:00
98bfd954b9 Updated site search to work with new Metadata 2011-02-20 16:10:37 +00:00
a4a6737e6d * Fixed order of HopObject.handleMetadata() and disableMacro() calls – the latter have to go last
* Added User.remove() method but left it disabled until thoroughly tested
 * Added check on registration whether an IP or e-mail address is blacklisted by either botscout.com or stopforumspam.com
2011-02-20 12:12:26 +00:00