Commit graph

3842 commits

Author SHA1 Message Date
b21d98211e Implemented first basic version of layout option for switching display of skin edit controls, ie. a button that appears next to every editable skin and directly leads to the skin editor when clicked. 2012-05-13 17:02:09 +00:00
99b771f8af Added confirmation for constructor call 2012-05-12 18:18:52 +00:00
e3a5e68102 Changed signature of HopObject.confirmConstructor() method: argument can now be either a constructor function or a prototype instance 2012-05-12 16:31:43 +00:00
4fa342c65b * Added new static add() method to most of the prototypes doing all necessary stuff to create the desired object, updating it, adding it to the right collection etc.
* Disburdened constructor methods of most of the prototypes by moving most of the code to the new static add() method.
 * Added temporary debugging method HopObject.confirmConstructor() to log a warning whenever a constructor is directly called – in which case it should be checked if the static add() method is to be preferred.
2012-05-12 13:54:04 +00:00
56d85942ed Replaced “return false” with “event.preventDefault()” in $Poll.skin#edit skin 2012-05-12 13:52:38 +00:00
531778c38c Fixed table layout, only creating one table for all results instead of one per each. 2012-05-12 13:52:09 +00:00
2cb742024d * Added new static add() method to most of the prototypes doing all necessary stuff to create the desired object, updating it, adding it to the right collection etc.
* Disburdened constructor methods of most of the prototypes by moving most of the code to the new static add() method.
 * Added temporary debugging method HopObject.confirmConstructor() to log a warning whenever a constructor is directly called – in which case it should be checked if the static add() method is to be preferred.
 * Removed obsolete code in Poll.edit_action() method.
2012-05-12 13:50:41 +00:00
744e72d3b4 Fixed tiny bug causing erroneously repeating lines 2012-04-22 17:15:34 +00:00
385bb40b48 Fixed control links 2012-04-21 16:08:57 +00:00
c760ba1c76 Slightly improved error ratio output 2012-04-21 15:46:45 +00:00
172f1c901a * Revamped and condensed health output
* Added error ratio for last 5 minutes. Fixes issue 65.
2012-04-21 15:35:44 +00:00
8e0e494d9a Implemented selection of macro code on click 2012-04-21 14:55:15 +00:00
c321c837d0 Fixed another occurrence of bug described in previous commit 2012-04-21 13:58:00 +00:00
4304d5c2ab Fixed strange bug causing the following macro structure to throw [Macro error in gettext: TypeError: Cannot find function replace in object Public. (/opt/helma/apps/antville/code/Global/i18n.js#100)]:
<% gettext <% item.status | capitalize %> %>
2012-04-21 13:57:17 +00:00
4f51765105 Fixed page width 2012-04-20 23:52:08 +00:00
e250a1bf3c Fixed i18n 2012-04-20 23:43:32 +00:00
bc2a770097 Improved diff view of skins (side-by-side, lighter colors, controls) 2012-04-20 23:21:50 +00:00
ebcf50bfe6 Implemented syntax highlighting in skin editor using Code Mirror from http://codemirror.net 2012-04-20 19:11:56 +00:00
0642342673 * Fixed issue requiring java.net.IDN class (ie. Java version >= 1.6) when creating a site
* Improved checks for site name containing problematic characters when used in vhost environment
2011-07-14 14:32:07 +00:00
2ebcb20184 Removed "final" as default string for the development part of Root.VERSION 2011-06-28 07:58:55 +00:00
f65641e28f Fixed link to Helma Documentation 2011-06-27 20:22:23 +00:00
66951ca743 Completed API documentation 2011-06-27 20:17:21 +00:00
a4bd814c47 Fixed typo 2011-06-27 20:15:55 +00:00
3954dc9894 Fixed some (missing) API doc tags 2011-06-27 20:14:55 +00:00
5732b470a5 Added missing API doc comments 2011-06-27 19:19:12 +00:00
Philipp Naderer
c7803133b3 Added addition parameters to API methods to upload images. 2011-06-27 13:52:02 +00:00
2f0b263110 Fixed bug in Story.format_filter() causing exception when replacing pseudo-quotes with their entities 2011-06-27 11:51:05 +00:00
c12b9f7c72 Renamed static antville-1.2.js to antville.js – version is now determined in query string 2011-06-16 09:47:31 +00:00
53e3848b14 Escaped false quotes to smooth things out with TextMate 2011-06-16 09:28:26 +00:00
b897dd7b16 Replaced rotten links with equivalent web.archive.org URLs 2011-06-16 09:16:00 +00:00
4df1183c03 Removed confusing comment 2011-06-16 08:59:40 +00:00
d483c14650 Trying to reduce SQL queries and thus speed up things by issuing HopObject.prefetchChildren() requests for metadata and layout images 2011-06-09 08:43:46 +00:00
b860191347 Trying to improve site deletion routine:
* Call Admin.purgeSites() from scheduler() to reduce delay between deletion date and running nightly()
 * Do not remove already existing deletion job, can be useful for debugging
 * Do not increase Site.deleted property when queueing the deletion job
 * Remove deletion job if exists and the site status has been changed again to prevent undesired deletion of sites
2011-06-09 08:25:24 +00:00
8f788da1b2 Fixed the Sql.SEARCH query to be compatible with PostgreSQL, too 2011-06-06 14:53:21 +00:00
a72fd7e1ee Fixed Sql.SEARCH query to only output distinct IDs to prevent redundant results 2011-06-06 14:31:23 +00:00
06406614db Fixed regular expression to remove single and double ticks (aka false quotes); using hexadecimal codes to prevent my editor from choking. 2011-06-06 07:00:15 +00:00
2de6c6ff15 Added default parameter to macro of connect feature; not really beautiful but for now it should be ok. 2011-06-06 06:33:25 +00:00
98bfb0b0db Fixed Root.VERSION to print build variables instead of [object Object] when the version string pattern cannot be applied 2011-06-04 18:53:00 +00:00
2174ec3ab4 * Fixed bad bug in User.update() causing user.email and user.url to be overwritten even with invalid data
* Added connect feature to user profile by providing links to connect and disconnect from the various services
 * Updated Scribe library to version 1.2 (used by connect feature)
2011-06-04 10:53:35 +00:00
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