Commit graph

93 commits

Author SHA1 Message Date
Mark Story
f1a0690415 Fixing issues in JsHelper with PHP4 compatibility. Seems passing arrays by reference doesn't work very well. 2010-01-15 00:02:24 -05:00
Mark Story
7a620b62b0 Merge branch '1.3-misc' into mergers
Conflicts:
	cake/libs/model/datasources/dbo_source.php
	cake/libs/view/helpers/js.php
2009-12-27 12:45:12 -05:00
Mark Story
5274dce9f1 Making set vars with Js->set go to the top of the buffered scripts array. Tests added.
Updating doc blocks for JsHelper and JsBaseEngineHelper.
Fixes #131
2009-12-21 09:41:36 -05:00
Mark Story
42fa6ff04a Fixing JsHelper::writeBuffer when inline is set to false. Scripts are now enclosed in a script tag. Fixes #130 2009-12-21 09:29:28 -05:00
Mark Story
e8f0ea951a Updating tests and doc blocks for JsHelper::writeBuffer() to return null if no scripts have been buffered. Fixes #108 2009-12-16 23:48:29 -05:00
kleingeist
2d9b13fe88 Prevent JsHelper::writeBuffer() to return empty lines (or empty onDomReady events)
Signed-off-by: Mark Story <mark@mark-story.com>
2009-12-16 23:36:40 -05:00
Mark Story
f26d5efd0c Applying patch from 'kleingeist'. JsHelper::set() now generates a variable that is assigned to window.$var instead of creating a local variable by default.
Tests updated.
Fixes #96
2009-12-10 23:37:55 -05:00
mark_story
4cefb5fbd0 Applying patch from kleingeist to fix Js->value incorrectly calling Helper::value() 2009-12-06 20:45:12 -05:00
mark_story
0783176238 Replacing duplicated code with pluginSplit().
Updating test case.
2009-11-15 19:55:20 -05:00
predominant
0977b3fe15 Standardising docblock endings throughout. 2009-11-14 23:19:25 +11:00
predominant
384bb7a0e0 Update license lines throughout. 2009-11-06 17:51:51 +11:00
predominant
d7b604c8ed Fixing links throughout 2009-11-06 17:46:59 +11:00
predominant
8ff6505fe8 Removing excess whitespace 2009-11-06 17:08:23 +11:00
predominant
6782cb019c Update CakePHP Project link. 2009-11-06 17:00:11 +11:00
predominant
8f75ff58c7 Removing @filesource 2009-11-06 15:24:02 +11:00
mark_story
6c956c27ee Making JsHelper::set() work well with setting the variables to an object property. 2009-10-14 21:43:50 -04:00
mark_story
4a330c0920 Adding JsHelper::set() + test cases. 2009-10-14 21:26:43 -04:00
mark_story
e6cc81226d Merge branch '1.3-jshelper' into 1.3 2009-09-20 17:46:30 -04:00
mark_story
05f908d36d Fixing failing tests in JsHelper caused by changed API in HtmlHelper. 2009-09-16 01:55:15 -04:00
mark_story
06e59abb1f Removing trailing spaces. 2009-08-12 10:21:28 -04:00
mark_story
4b88ba5f9d Updating doc block. 2009-08-12 09:45:42 -04:00
mark_story
08f0c7c157 Fixing method dispatching errors in JsHelper with regards to Object::object, and PHP4 workarounds. 2009-08-12 09:45:42 -04:00
mark_story
24299cf943 Implementing wrapped callbacks in Mootools. Fixing implementation in Prototype. Adding JsBaseEngineHelper::_processOptions() to reduce duplicate code.
Test cases appended and updated.
2009-07-29 00:05:27 -04:00
mark_story
75026715d1 Adding additional tests to Request and updating callback argument list. 2009-07-28 00:04:43 -04:00
mark_story
7246563bae Adding newlines 2009-07-26 21:58:58 -04:00
mark_story
def4c98a08 Merge branch '1.3' into 1.3-jshelper
Conflicts:
	cake/libs/view/helpers/html.php
	cake/libs/view/helpers/js.php
	cake/tests/cases/libs/view/helpers/html.test.php
	cake/tests/cases/libs/view/helpers/js.test.php
	cake/tests/lib/header.php
2009-07-25 17:35:27 -04:00
mark_story
6f10f5de6d Fixing issues with ajax forms and mootools. post needs to be lowercase.
Implementing serializeForm() in MootoolsEngine.
Updating doc blocks.
2009-07-25 17:10:22 -04:00
mark_story
9a66c2cfc5 Fixing method param in jQuery engine. Needed to be converted to 'type'.
Fixing issues in JsHelper::submit() related to data being escaped.
Updating tests cases.
2009-07-24 23:29:44 -04:00
mark_story
49e0e5743f Adding tests for custom url on submit() 2009-07-24 22:54:22 -04:00
mark_story
e8b39fb9a5 Updating docs for serializeForm.
Making url for form js more flexible.
2009-07-24 22:47:08 -04:00
mark_story
76c13fa98e Adding non buffered tests to Js::link()
Implementing Js::submit() adding test cases.
2009-07-24 22:13:54 -04:00
AD7six
b2142df2bc adding a newline before all comment blocks 2009-07-24 21:18:37 +02:00
mark_story
a3d5a9beae Adding stubs for JsHelper::submit() 2009-07-21 00:24:58 -04:00
mark_story
a5bfe72bd2 Updating file header and doc blocks. 2009-07-17 00:10:48 -04:00
mark_story
4a4b9eefe5 Updating file headers.
Removing newlines.
2009-07-17 00:09:06 -04:00
mark_story
04fa46f228 Updating Js::link() adding confirm option. 2009-07-12 18:42:36 -04:00
mark_story
5119e58e3b Starting work on Js::link() 2009-07-12 17:30:41 -04:00
mark_story
69de1291e1 Removing deprecated options from object()
Tests updated.
2009-07-11 17:31:54 -04:00
mark_story
50c624486e Updating tests to reflect changes in json encoding. 2009-07-11 17:21:06 -04:00
mark_story
912f6589d5 Partial Revert "Adding optional param to remove colon on methods. Allows use inside"
This reverts commit b29e130606176e4ad4d834fdf42746b3c4085686.
2009-04-26 23:24:39 -04:00
mark_story
e990c5ba37 Adding optional param to remove colon on methods. Allows use inside
object literals.
2009-04-26 22:53:26 -04:00
mark_story
9754926d02 Merging with self. 2009-04-24 13:44:52 -04:00
mark_story
4507d2b895 Adding slider() skel to libraries. 2009-04-15 23:59:13 -04:00
mark_story
518dd41ca8 Updating doc blocks. Removing old methods from JsHelper. 2009-04-15 23:48:04 -04:00
mark_story
02bb4e71f3 Adding drag and drop() methods to prototype.
Adding test for option pass through on _mapOptions(). Ensures that
correctly named options do not get munged.
2009-04-11 00:01:40 -04:00
mark_story
646cfd7a83 Adding drop() to jquery.
Adding testcases.
Fixing doc blocks.
2009-04-08 23:57:32 -04:00
mark_story
5f7abae48c Fixing request() callbacks. Starting test for prototype 2009-04-05 23:49:09 -04:00
mark_story
23423f2791 Updating request in Mootools 2009-03-29 22:08:49 -04:00
mark_story
923883bdad Adding default list of buffered methods to the JsBaseEngine. 2009-03-29 16:14:56 -04:00
mark_story
f2578315e7 Refactoring how buffering works.
Adding buffer params to method calls.
Adding tests for buffer calls.
2009-03-29 16:10:04 -04:00