New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catching the core changes and moving to HTML5. #65

Merged
merged 1 commit into from Sep 3, 2017
Jump to file or symbol
Failed to load files and symbols.
+600 −600
Diff settings

Always

Just for now

Catching the core changes and moving to HTML5.

  • Loading branch information...
Antes committed Sep 3, 2017
commit 11c73da4c7dbcdb7855c2253f899a95371bd3ca3
Copy path View file
@@ -1,5 +1,5 @@
# Force our line endings to be LF, even for Windows
* text
* text=auto
# Set certain files to be binary
*.png binary
Copy path View file
@@ -240,7 +240,7 @@ form#postmodify .shd_ticket_roundframe
{
margin-top: 8px;
}
.shd_customfields .input_text
.shd_customfields input[type="text"]
{
width: 85%;
}
Copy path View file
@@ -231,7 +231,7 @@ shd_attach_select.prototype.addListRow = function (element)
var new_row_button = document.createElement('input');
new_row_button.type = 'button';
new_row_button.value = this.opts.message_txt_delete;
new_row_button.className = 'button_submit';
new_row_button.className = 'button';
new_row.element = element;
new_row_button.onclick = function ()
@@ -421,7 +421,7 @@ function AjaxAssign(oOptions)
this.bCollapsed = true;
// Insert the expand/collapse button
document.getElementById(this.opt.sId).innerHTML = '<img src="' + this.opt.sImagesUrl + "/" + this.opt.sImageCollapsed + '" id="assign_' + this.opt.sSelf + '" class="shd_assign_button" onclick="' + this.opt.sSelf + '.click();" />';
document.getElementById(this.opt.sId).innerHTML = '<img src="' + this.opt.sImagesUrl + "/" + this.opt.sImageCollapsed + '" id="assign_' + this.opt.sSelf + '" class="shd_assign_button" onclick="' + this.opt.sSelf + '.click();">';
}
AjaxAssign.prototype.click = function ()
@@ -467,7 +467,7 @@ AjaxAssign.prototype.expand_callback = function (XMLDoc)
{
newhtml += '<li class="shd_assignees" onclick="' + this.opt.sSelf + '.assign(' + elements[i].getAttribute('uid') + ');">';
if (elements[i].getAttribute('admin'))
newhtml += '<img src="' + smf_default_theme_url + '/images/simpledesk/' + (elements[i].getAttribute('admin') == 'yes' ? 'admin' : 'staff') + '.png" alt="" class="shd_smallicon" /> ';
newhtml += '<img src="' + smf_default_theme_url + '/images/simpledesk/' + (elements[i].getAttribute('admin') == 'yes' ? 'admin' : 'staff') + '.png" alt="" class="shd_smallicon"> ';
newhtml += elements[i].childNodes[0].nodeValue + '</li>';
}
@@ -42,7 +42,7 @@
$txt['shd_admin_title'] = 'Helpdesk Administration Center';
$txt['shd_staff_list'] = 'Helpdesk staff';
$txt['shd_update_available'] = 'New version available!';
$txt['shd_update_message'] = 'A new version of SimpleDesk has been released. We recommened you to <a href="#" id="update-link">update to the latest version</a> in order to stay secure and enjoy all features our modification have to offer.' . "\n\n" . '<span style="display: none;" id="information-link-span"><br />For more information on what is new in this release, please visit <a href="#" id="information-link" target="_blank">our website</a>.</span><br />' . "\n\n" . '<strong>The SimpleDesk Team</strong>';
$txt['shd_update_message'] = 'A new version of SimpleDesk has been released. We recommened you to <a href="#" id="update-link">update to the latest version</a> in order to stay secure and enjoy all features our modification have to offer.' . "\n\n" . '<span style="display: none;" id="information-link-span"><br>For more information on what is new in this release, please visit <a href="#" id="information-link" target="_blank">our website</a>.</span><br>' . "\n\n" . '<strong>The SimpleDesk Team</strong>';
//@}
//! @name Urgency levels, ties to helpdesk_tickets.urgency
@@ -309,7 +309,7 @@
//@{
$txt['shd_admin_support_form_title'] = 'Support form';
$txt['shd_admin_support_what_is_this'] = 'What is this?';
$txt['shd_admin_support_explanation'] = 'This simple form will allow you to send a support request directly to the SimpleDesk website so that the support team there can help you solve any issue you run in to.<br /><br />Please note that you will need an account on our website in order to post as well as replying to your topic in the future. This form will simply speed up the posting process.';
$txt['shd_admin_support_explanation'] = 'This simple form will allow you to send a support request directly to the SimpleDesk website so that the support team there can help you solve any issue you run in to.<br><br>Please note that you will need an account on our website in order to post as well as replying to your topic in the future. This form will simply speed up the posting process.';
$txt['shd_admin_support_send'] = 'Send support request';
//@}
@@ -623,7 +623,7 @@
$txt['shd_maint_search_settings'] = 'Search Settings';
$txt['shd_maint_search_settings_desc'] = 'This page allows you to configure how ticket searching may be performed, and if necessary, rebuild the index used to perform searching.';
$txt['shd_maint_rebuild_index'] = 'Rebuild the Search Index';
$txt['shd_maint_rebuild_index_desc'] = 'If you have existing tickets that were around prior to the search facility being provided, or you alter the settings below, you will <strong>need</strong> to rebuild the index after. The index is what is physically used to search, and if the physical index setup is different to how searches are made, you will find searching very unrealiable.<br /><strong>Important:</strong> Building the search index is a very intensive task. It will take a while to carry out, during which time please leave this window open.';
$txt['shd_maint_rebuild_index_desc'] = 'If you have existing tickets that were around prior to the search facility being provided, or you alter the settings below, you will <strong>need</strong> to rebuild the index after. The index is what is physically used to search, and if the physical index setup is different to how searches are made, you will find searching very unrealiable.<br><strong>Important:</strong> Building the search index is a very intensive task. It will take a while to carry out, during which time please leave this window open.';
$txt['shd_maint_search_settings_warning'] = 'If you alter these settings, you will need to rebuild the search index.';
$txt['shd_search_min_size'] = 'Minimum number of letters to be considered a word (3-15)';
$txt['shd_search_max_size'] = 'Maximum number of letters to be considered a word (3-15)';
@@ -67,7 +67,7 @@ function template_shd_frontpage_admin()
</select>
</dd>
</dl>
<hr class="hrcolor" />
<hr>
<dl class="permsettings">
<dt style="width: 30%;">
<a id="setting_shdp_frontpage_type"></a> <span><label id="label_shdp_frontpage_type" for="shdp_frontpage_type">', $txt['shdp_frontpage_type'], '</label></span>
@@ -95,9 +95,9 @@ function template_shd_frontpage_admin()
echo '
</dd>
</dl>
<hr class="hrcolor" />
<hr>
<div class="righttext">
<input type="submit" value="', $txt['save'], '"', (!empty($context['save_disabled']) ? ' disabled="disabled"' : ''), (!empty($context['settings_save_onclick']) ? ' onclick="' . $context['settings_save_onclick'] . '"' : ''), ' class="button_submit" />
<input type="submit" value="', $txt['save'], '"', (!empty($context['save_disabled']) ? ' disabled="disabled"' : ''), (!empty($context['settings_save_onclick']) ? ' onclick="' . $context['settings_save_onclick'] . '"' : ''), ' class="button">
</div>
</div>
@@ -106,12 +106,12 @@ function template_shd_frontpage_admin()
</div>';
if (isset($context['admin-dbsc_token']))
echo '
<input type="hidden" name="', $context['admin-dbsc_token_var'], '" value="', $context['admin-dbsc_token'], '" />';
<input type="hidden" name="', $context['admin-dbsc_token_var'], '" value="', $context['admin-dbsc_token'], '">';
echo '
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
</form>
</div>
<br class="clear" />';
<br>';
if (!empty($context['settings_post_javascript']))
echo '
<script type="text/javascript"><!-- // --><![CDATA[
@@ -55,7 +55,7 @@ function template_main()
<div class="title_bar">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img src="', $settings['images_url'], '/stats_info.png" class="icon" alt="" /> ', $txt['general_stats'], '
<img src="', $settings['images_url'], '/stats_info.png" class="icon" alt=""> ', $txt['general_stats'], '
</span>
</h4>
</div>
@@ -115,7 +115,7 @@ function template_main()
<div class="title_bar">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img src="', $settings['images_url'], '/stats_posters.png" class="icon" alt="" /> ', $txt['urgency_stats'], '
<img src="', $settings['images_url'], '/stats_posters.png" class="icon" alt=""> ', $txt['urgency_stats'], '
</span>
</h4>
</div>
@@ -160,7 +160,7 @@ function template_main()
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft">
<img src="', $settings['images_url'], '/stats_history.png" class="icon" alt="" /> ', $txt['ticket_history'], '
<img src="', $settings['images_url'], '/stats_history.png" class="icon" alt=""> ', $txt['ticket_history'], '
</span>
</h3>
</div>
Copy path View file
@@ -185,10 +185,10 @@ function shd_admin_info()
'description' => $txt['shd_admin_options_desc'],
'tabs' => array(
'main' => array(
'description' => '<strong>' . $txt['hello_guest'] . ' ' . $context['user']['name'] . '!</strong><br />' . $txt['shd_admin_info_desc'],
'description' => '<strong>' . $txt['hello_guest'] . ' ' . $context['user']['name'] . '!</strong><br>' . $txt['shd_admin_info_desc'],
),
'actionlog' => array(
'description' => $txt['shd_admin_actionlog_desc'] . '<br />' . (!empty($modSettings['shd_disable_action_log']) ? '<span class="smalltext">' . $txt['shd_action_log_disabled'] . '</span>' : ''),
'description' => $txt['shd_admin_actionlog_desc'] . '<br>' . (!empty($modSettings['shd_disable_action_log']) ? '<span class="smalltext">' . $txt['shd_action_log_disabled'] . '</span>' : ''),
),
'adminlog' => array(
'description' => $txt['shd_admin_adminlog_desc'],
@@ -203,7 +203,7 @@ function shd_admin_info()
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subactions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'main';
// Now that we have validated the subaction.
$context[$context['admin_menu_name']]['tab_data']['title'] = '<img src="' . $settings['images_url'] . '/admin/shd/' . $subactions[$_REQUEST['sa']]['icon'] . '" class="icon" alt="*" />' . $subactions[$_REQUEST['sa']]['title'];
$context[$context['admin_menu_name']]['tab_data']['title'] = '<img src="' . $settings['images_url'] . '/admin/shd/' . $subactions[$_REQUEST['sa']]['icon'] . '" class="icon" alt="*">' . $subactions[$_REQUEST['sa']]['title'];
// Are we doing the main page, or leaving here?
if (!empty($subactions[$_REQUEST['sa']]['function']))
@@ -264,7 +264,7 @@ function shd_switchable_item(item, state)
';
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => '<img src="' . $settings['default_images_url'] . '/simpledesk/status.png" class="icon" alt="*" />' . $txt['shd_admin_options'],
'title' => '<img src="' . $settings['default_images_url'] . '/simpledesk/status.png" class="icon" alt="*">' . $txt['shd_admin_options'],
'description' => $txt['shd_admin_options_desc'],
'tabs' => array(
'display' => array(
@@ -1003,9 +1003,9 @@ function shd_credits()
'icon' => 'others.png',
'members' => array(
array('Fluffy - ' . sprintf($txt['shd_fluffy'],'onclick="window.location.href=\'' . $scripturl . '?action=admin;area=helpdesk_info;cookies\'"'),false),
array('<br />' . $txt['shd_credits_translators'],false),
array('<br />' . sprintf($txt['shd_credits_icons'], 'http://p.yusukekamiyamane.com/', 'http://wefunction.com/2008/07/function-free-icon-set/', 'http://www.famfamfam.com/lab/icons/flags/', 'http://www.everaldo.com/crystal/'),false),
array('<br />' . $txt['shd_credits_user'],false),
array('<br>' . $txt['shd_credits_translators'],false),
array('<br>' . sprintf($txt['shd_credits_icons'], 'http://p.yusukekamiyamane.com/', 'http://wefunction.com/2008/07/function-free-icon-set/', 'http://www.famfamfam.com/lab/icons/flags/', 'http://www.everaldo.com/crystal/'),false),
array('<br>' . $txt['shd_credits_user'],false),
),
),
),
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.