summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-23 13:26:02 +0300
committerAndrew Dolgov <[email protected]>2010-11-23 13:26:02 +0300
commit8386f8614b1426869490adc9bfdb06344532eba3 (patch)
tree2a755b2115bbc77932ec4833aff168b210c432c9 /modules
parent8cd576a12ad94175fc511bab83191d92f83aa0b0 (diff)
refactor tags dialog
Diffstat (limited to 'modules')
-rw-r--r--modules/popup-dialog.php33
1 files changed, 16 insertions, 17 deletions
diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php
index 584f6e51d..52b1f94f6 100644
--- a/modules/popup-dialog.php
+++ b/modules/popup-dialog.php
@@ -569,10 +569,7 @@
if ($id == "editArticleTags") {
- print "<title>".__('Edit Tags')."</title>";
- print "<content><![CDATA[";
-
- print "<form id=\"tag_edit_form\" onsubmit='return false'>";
+# print "<form id=\"tag_edit_form\" onsubmit='return false'>";
print __("Tags for this article (separated by commas):")."<br>";
@@ -580,28 +577,30 @@
$tags_str = join(", ", $tags);
- print "<table width='100%'>";
+ print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"id\" value=\"$param\">";
+ print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"rpc\">";
+ print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"subop\" value=\"setArticleTags\">";
- print "<tr><td colspan='2'><input type=\"hidden\" name=\"id\" value=\"$param\"></td></tr>";
+ print "<table width='100%'><tr><td>";
- print "<tr><td colspan='2'><textarea rows='4' class='iedit' id='tags_str'
+ print "<textarea dojoType=\"dijit.form.SimpleTextarea\" rows='4'
+ style='font-size : 12px; width : 100%' id=\"tags_str\"
name='tags_str'>$tags_str</textarea>
<div class=\"autocomplete\" id=\"tags_choices\"
- style=\"display:none\"></div>
- </td></tr>";
-
- print "</table>";
+ style=\"display:none\"></div>";
- print "</form>";
+ print "</td></tr></table>";
- print "<div align='right'>";
+# print "</form>";
- print "<button onclick=\"return editTagsSave()\">".__('Save')."</button> ";
- print "<button onclick=\"return closeInfoBox()\">".__('Cancel')."</button>";
+ print "<div class='dlgButtons'>";
- print "]]></content>";
+ print "<button dojoType=\"dijit.form.Button\"
+ onclick=\"dijit.byId('editTagsDlg').execute()\">".__('Save')."</button> ";
+ print "<button dojoType=\"dijit.form.Button\"
+ onclick=\"dijit.byId('editTagsDlg').hide()\">".__('Cancel')."</button>";
+ print "</div>";
- //return;
}
if ($id == "printTagCloud") {