diff options
author | Andrew Dolgov <[email protected]> | 2018-12-07 14:03:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-07 14:03:33 +0300 |
commit | a68b15060195b42eea36f29d2837bb920e35f07a (patch) | |
tree | d7df0deae0b0b0d3974e66fd3c5abd6ead029b35 /classes/pref/prefs.php | |
parent | e5dfc20939a74674fb01fa4688c7dbe1800bc22d (diff) |
remove separate classes for various panels, unify under .panel
remove a few other unnecessary css classes/ids
Diffstat (limited to 'classes/pref/prefs.php')
-rw-r--r-- | classes/pref/prefs.php | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index ac3eae13f..6c7a45953 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -1015,9 +1015,9 @@ class Pref_Prefs extends Handler_Protected { print "<div dojoType=\"dijit.form.DropDownButton\">". "<span>" . __('Select')."</span>"; print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">"; - print "<div onclick=\"Tables.select('prefFeedProfileList', true)\" + print "<div onclick=\"Tables.select('pref-profiles-list', true)\" dojoType=\"dijit.MenuItem\">".__('All')."</div>"; - print "<div onclick=\"Tables.select('prefFeedProfileList', false)\" + print "<div onclick=\"Tables.select('pref-profiles-list', false)\" dojoType=\"dijit.MenuItem\">".__('None')."</div>"; print "</div></div>"; @@ -1035,19 +1035,15 @@ class Pref_Prefs extends Handler_Protected { WHERE owner_uid = ? ORDER BY title"); $sth->execute([$_SESSION['uid']]); - print "<div class=\"prefProfileHolder\">"; + print "<div class='panel panel-scrollable'>"; - print "<form id=\"profile_edit_form\" onsubmit=\"return false\">"; + print "<form id='profile_edit_form' onsubmit='return false'>"; - print "<table width=\"100%\" class=\"prefFeedProfileList\" - cellspacing=\"0\" id=\"prefFeedProfileList\">"; + print "<table width='100%' id='pref-profiles-list'>"; - print "<tr class=\"placeholder\">"; # data-row-id='0' <-- no point, shouldn't be removed + print "<tr>"; # data-row-id='0' <-- no point, shouldn't be removed - print "<td width='5%' align='center'><input - onclick='Tables.onRowChecked(this);' - dojoType=\"dijit.form.CheckBox\" - type=\"checkbox\"></td>"; + print "<td><input onclick='Tables.onRowChecked(this);' dojoType='dijit.form.CheckBox' type='checkbox'></td>"; if (!$_SESSION["profile"]) { $is_active = __("(active)"); @@ -1055,8 +1051,7 @@ class Pref_Prefs extends Handler_Protected { $is_active = ""; } - print "<td><span>" . - __("Default profile") . " $is_active</span></td>"; + print "<td width='100%'><span>" . __("Default profile") . " $is_active</span></td>"; print "</tr>"; @@ -1066,14 +1061,11 @@ class Pref_Prefs extends Handler_Protected { $profile_id = $line["id"]; - print "<tr class=\"placeholder\" data-row-id='$profile_id'>"; + print "<tr data-row-id='$profile_id'>"; $edit_title = htmlspecialchars($line["title"]); - print "<td width='5%' align='center'><input - onclick='Tables.onRowChecked(this);' - dojoType=\"dijit.form.CheckBox\" - type=\"checkbox\"></td>"; + print "<td><input onclick='Tables.onRowChecked(this);' dojoType='dijit.form.CheckBox' type='checkbox'></td>"; if ($_SESSION["profile"] == $line["id"]) { $is_active = __("(active)"); |