summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2007-11-11 09:17:05 +0000
committerAndreas Brachold <vdr07@deltab.de>2007-11-11 09:17:05 +0000
commitddd8420db7ba36628bddaf7d780026e4eb125145 (patch)
tree3d5e2e636eaea18585dfc42fad064b72e296943f
parent4d83d0fe84b865d4f944a8faab268917fff312d2 (diff)
downloadxxv-ddd8420db7ba36628bddaf7d780026e4eb125145.tar.gz
xxv-ddd8420db7ba36628bddaf7d780026e4eb125145.tar.bz2
* MEDIALIB: Fix can't save media
-rw-r--r--skins/stone/mledit.tmpl6
-rw-r--r--skins/stone/rlist.tmpl2
-rw-r--r--skins/stone_flat/mledit.tmpl6
-rw-r--r--skins/xstyle/mledit.tmpl6
4 files changed, 10 insertions, 10 deletions
diff --git a/skins/stone/mledit.tmpl b/skins/stone/mledit.tmpl
index 408e22c..b07842b 100644
--- a/skins/stone/mledit.tmpl
+++ b/skins/stone/mledit.tmpl
@@ -5,7 +5,7 @@
<h1><?% IF data.id %?><?% gettext("Edit media") %?><?% ELSE %?><?% gettext("Create new media") %?><?% END %?></h1>
-<form method="post" action="?cmd=mlresearch" name='library'>
+<form method="post" action="?cmd=mlsave" name="library">
<input type="hidden" name="data" value="<?% IF data.id %?><?% data.id %?><?% ELSE %?><?% param.id %?><?% END %?>" />
<input type="hidden" name="__range" value="<?% param.range %?>" />
<table class="largetable" summary="">
@@ -25,7 +25,7 @@
</td>
<td colspan="3">
<input type="text" name="__title" id="title" value="<?% data.title || param.title %?>" style="width:50%;" maxlength="255" />
- &nbsp;<input type="submit" name="__search" value="<?% gettext('Search at') %?>" onfocus="document.library.cmd.value='mlresearch'" onblur="document.library.cmd.value='mlsave'" />&nbsp;&nbsp;
+ &nbsp;<input type="submit" name="__search" value="<?% gettext('Search at') %?>" onfocus="document.library.action='?cmd=mlresearch'" onblur="document.library.action='?cmd=mlsave'" />&nbsp;&nbsp;
<input type="radio" name="__source" value="dvdpalace" checked="checked" />&nbsp;
<a href="http://www.dvd-palace.de" target="_blank">DVD-Palace (DE)</a>
</td>
@@ -189,7 +189,7 @@
<tr>
<td colspan="4" align="right">
<input type="reset" value="<?% gettext("Reset") %?>" />&nbsp;
- <input type="submit" name="__save" value="<?% gettext('Apply') %?>" onblur="document.library.cmd.value='mlresearch'" onfocus="document.library.cmd.value='mlsave'" />&nbsp;&nbsp;
+ <input type="submit" name="__save" value="<?% gettext('Apply') %?>" onblur="document.library.action='?cmd=mlresearch'" onfocus="document.library.action='?cmd=mlsave'" />&nbsp;&nbsp;
</td>
</tr>
</table>
diff --git a/skins/stone/rlist.tmpl b/skins/stone/rlist.tmpl
index 615c15e..cca32f8 100644
--- a/skins/stone/rlist.tmpl
+++ b/skins/stone/rlist.tmpl
@@ -286,7 +286,7 @@
</tr>
</table>
<?% END %?>
-<?% IF param.sortable.defined %?>
+<?% IF param.sortable.defined && data.size > 1 %?>
<?% cmd = cgi.param('cmd') %?>
<?% IF cgi.param('data') %?>
<?% daten = url( cgi.param('data') ) %?>
diff --git a/skins/stone_flat/mledit.tmpl b/skins/stone_flat/mledit.tmpl
index e5578dd..751a6f7 100644
--- a/skins/stone_flat/mledit.tmpl
+++ b/skins/stone_flat/mledit.tmpl
@@ -5,7 +5,7 @@
<h1><?% IF data.id %?><?% gettext("Edit media") %?><?% ELSE %?><?% gettext("Create new media") %?><?% END %?></h1>
-<form method="post" action="?cmd=mlresearch" name='library'>
+<form method="post" action="?cmd=mlsave" name="library">
<input type="hidden" name="data" value="<?% IF data.id %?><?% data.id %?><?% ELSE %?><?% param.id %?><?% END %?>" />
<input type="hidden" name="__range" value="<?% param.range %?>" />
<table class="largetable" summary="">
@@ -25,7 +25,7 @@
</td>
<td colspan="3">
<input type="text" name="__title" id="title" value="<?% data.title || param.title %?>" style="width:50%;" maxlength="255" />
- &nbsp;<input type="submit" name="__search" value="<?% gettext('Search at') %?>" onfocus="document.library.cmd.value='mlresearch'" onblur="document.library.cmd.value='mlsave'" />&nbsp;&nbsp;
+ &nbsp;<input type="submit" name="__search" value="<?% gettext('Search at') %?>" onfocus="document.library.action='?cmd=mlresearch'" onblur="document.library.action='?cmd=mlsave'" />&nbsp;&nbsp;
<input type="radio" name="__source" value="dvdpalace" checked="checked" />&nbsp;
<a href="http://www.dvd-palace.de" target="_blank">DVD-Palace (DE)</a>
</td>
@@ -189,7 +189,7 @@
<tr>
<td colspan="4" align="right">
<input type="reset" value="<?% gettext("Reset") %?>" />&nbsp;
- <input type="submit" name="__save" value="<?% gettext('Apply') %?>" onblur="document.library.cmd.value='mlresearch'" onfocus="document.library.cmd.value='mlsave'" />&nbsp;&nbsp;
+ <input type="submit" name="__save" value="<?% gettext('Apply') %?>" onblur="document.library.action='?cmd=mlresearch'" onfocus="document.library.action='?cmd=mlsave'" />&nbsp;&nbsp;
</td>
</tr>
</table>
diff --git a/skins/xstyle/mledit.tmpl b/skins/xstyle/mledit.tmpl
index 334498a..4bb039e 100644
--- a/skins/xstyle/mledit.tmpl
+++ b/skins/xstyle/mledit.tmpl
@@ -14,7 +14,7 @@
nav_ranges = 1
%?>
-<form method="post" action="?cmd=mlresearch" name='library'>
+<form method="post" action="?cmd=mlsave" name="library">
<input type="hidden" name="data" value="<?% IF data.id %?><?% data.id %?><?% ELSE %?><?% param.id %?><?% END %?>" />
<input type="hidden" name="__range" value="<?% param.range %?>" />
<table border="100%">
@@ -24,7 +24,7 @@
</td>
<td colspan="3">
<input type="text" name="__title" id="title" value="<?% data.title || param.title %?>" size="50" maxlength="255" />
- &nbsp;<input type="submit" name="__search" value="<?% gettext('Search at') %?>" onfocus="document.library.cmd.value='mlresearch'" onblur="document.library.cmd.value='mlsave'" />&nbsp;&nbsp;
+ &nbsp;<input type="submit" name="__search" value="<?% gettext('Search at') %?>" onfocus="document.library.action='?cmd=mlresearch'" onblur="document.library.action='?cmd=mlsave'" />&nbsp;&nbsp;
<input type="radio" name="__source" value="dvdpalace" checked>&nbsp;
<a href="http://www.dvd-palace.de" target="_blank">DVD-Palace (DE)</a>
<!--<img width="100" height="28" src="images/dvdpalace.gif" border="0" alt="www.dvd-palace.de"/ align="bottom">-->
@@ -198,7 +198,7 @@
</tr>
<tr>
<td colspan="4">
- <input type='submit' name="__save" value='<?% gettext('Save') %?>' onfocus="document.library.cmd.value='mlsave'" onblur="document.library.cmd.value='mlresearch'"/>&nbsp;
+ <input type='submit' name="__save" value='<?% gettext('Save') %?>' onfocus="document.library.action='?cmd=mlsave'" onblur="document.library.action='?cmd=mlresearch'"/>&nbsp;
</td>
</tr>
</table>