From 03408f3e39bbb0b407b2949721090dd6b07913ac Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 5 Nov 2009 12:55:06 -0800 Subject: Refactor the in place editting in tags admin out into a separate widget as part ofthe gallery module. Create the jQuery widget, form template and library to support generalized in place editting. Part of the fix for ticket #750. --- modules/gallery/views/in_place_edit.html.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/gallery/views/in_place_edit.html.php (limited to 'modules/gallery/views/in_place_edit.html.php') diff --git a/modules/gallery/views/in_place_edit.html.php b/modules/gallery/views/in_place_edit.html.php new file mode 100644 index 00000000..5cc42cd6 --- /dev/null +++ b/modules/gallery/views/in_place_edit.html.php @@ -0,0 +1,24 @@ + + + "post", "id" => "g-inplace-edit-form", "class" => "g-short-form"), $hidden) ?> + + + +
+ + -- cgit v1.2.3 From 6984737a542d759cbde967341ff3eca9ce20a3ba Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 5 Nov 2009 21:35:40 -0800 Subject: Clean up problem with cancelling the inplace edit left a whole bunch of css artifacts. --- modules/gallery/css/gallery.css | 4 ++++ modules/gallery/helpers/gallery_theme.php | 1 + modules/gallery/views/in_place_edit.html.php | 8 -------- themes/admin_wind/css/screen.css | 5 +++++ themes/night_wind/css/screen.css | 5 +++++ themes/wind/css/screen.css | 5 +++++ 6 files changed, 20 insertions(+), 8 deletions(-) (limited to 'modules/gallery/views/in_place_edit.html.php') diff --git a/modules/gallery/css/gallery.css b/modules/gallery/css/gallery.css index a4a52155..c766abbc 100644 --- a/modules/gallery/css/gallery.css +++ b/modules/gallery/css/gallery.css @@ -116,3 +116,7 @@ background-color: #cfc; border: 1px solid #beb; } + +#g-inplace-edit-form ul { + margin: 0; +} diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index 3fcaca67..0682d4ae 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -61,6 +61,7 @@ class gallery_theme_Core { } static function admin_head($theme) { + $theme->css("gallery.css"); $theme->script("gallery.panel.js"); $session = Session::instance(); if ($session->get("debug")) { diff --git a/modules/gallery/views/in_place_edit.html.php b/modules/gallery/views/in_place_edit.html.php index 5cc42cd6..64671d57 100644 --- a/modules/gallery/views/in_place_edit.html.php +++ b/modules/gallery/views/in_place_edit.html.php @@ -1,12 +1,4 @@ - "post", "id" => "g-inplace-edit-form", "class" => "g-short-form"), $hidden) ?>