Use an "ajax" class on ajaxified "Create View" links
This commit is contained in:
parent
8dfe3acc46
commit
49fe17949a
@ -3540,7 +3540,7 @@ $(function () {
|
||||
* Ajaxification for the "Create View" action
|
||||
*/
|
||||
$(document).ready(function () {
|
||||
$('span.create_view.ajax a').live('click', function (e) {
|
||||
$('span a.create_view.ajax').live('click', function (e) {
|
||||
e.preventDefault();
|
||||
var $msg = PMA_ajaxShowMessage();
|
||||
var syntaxHighlighter = null;
|
||||
|
||||
@ -249,7 +249,7 @@ class PMA_DisplayResults
|
||||
* @param type $showtable array table definitions
|
||||
* @param type $printview string
|
||||
* @param type $url_query string URL query
|
||||
* @param type $resultSetContainsUniqueKey boolean
|
||||
* @param type $resultSetContainsUniqueKey boolean
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
@ -5346,14 +5346,13 @@ class PMA_DisplayResults
|
||||
|
||||
$ajax_class = $GLOBALS['cfg']['AjaxEnable'] ? ' ajax' : '';
|
||||
|
||||
$results_operations_html .= '<span class="create_view'
|
||||
. $ajax_class . '">'
|
||||
$results_operations_html .= '<span>'
|
||||
. PMA_Util::linkOrButton(
|
||||
'view_create.php' . $url_query,
|
||||
PMA_Util::getIcon(
|
||||
'b_views.png', __('Create view'), true
|
||||
),
|
||||
'', true, true, ''
|
||||
array('class' => 'create_view' . $ajax_class), true, true, ''
|
||||
)
|
||||
. '</span>' . "\n";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user