mirror of
https://github.com/xevidos/codiad.git
synced 2024-12-23 06:12:16 +01:00
Removed some git artifacts
This commit is contained in:
parent
c8c971b509
commit
aad8c48a82
4 changed files with 12 additions and 27 deletions
|
@ -115,31 +115,27 @@ class Active extends Common {
|
||||||
public function Add() {
|
public function Add() {
|
||||||
|
|
||||||
global $sql;
|
global $sql;
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
$query = "SELECT focused FROM active WHERE path=? AND user=? LIMIT 1;";
|
$query = "SELECT focused FROM active WHERE path=? AND user=? LIMIT 1;";
|
||||||
$bind_variables = array( $this->path, $_SESSION["user_id"] );
|
$bind_variables = array( $this->path, $_SESSION["user_id"] );
|
||||||
$result = $sql->query( $query, $bind_variables, array() );
|
$result = $sql->query( $query, $bind_variables, array() );
|
||||||
|
|
||||||
if( count( $result ) == 0 ) {
|
if( count( $result ) == 0 ) {
|
||||||
|
|
||||||
|
$query = "UPDATE active SET focused=false WHERE user=? AND path=?;";
|
||||||
=======
|
$bind_variables = array( $_SESSION["user_id"], $this->path );
|
||||||
$query = "UPDATE active SET focused=false WHERE user=? AND path=?;";
|
|
||||||
$bind_variables = array( $_SESSION["user_id"], $this->path );
|
|
||||||
$result = $sql->query( $query, $bind_variables, 0, "rowCount" );
|
|
||||||
|
|
||||||
if( $result == 0 ) {
|
|
||||||
|
|
||||||
global $sql;
|
|
||||||
>>>>>>> 5af37cbce3326f97b4d3ff7eb50e88feb1fc8063
|
|
||||||
$query = "INSERT INTO active( user, path, focused ) VALUES ( ?, ?, ? );";
|
|
||||||
$bind_variables = array( $_SESSION["user_id"], $this->path, false );
|
|
||||||
$result = $sql->query( $query, $bind_variables, 0, "rowCount" );
|
$result = $sql->query( $query, $bind_variables, 0, "rowCount" );
|
||||||
|
|
||||||
if( $result > 0 ) {
|
if( $result == 0 ) {
|
||||||
|
|
||||||
echo formatJSEND( "success" );
|
global $sql;
|
||||||
|
$query = "INSERT INTO active( user, path, focused ) VALUES ( ?, ?, ? );";
|
||||||
|
$bind_variables = array( $_SESSION["user_id"], $this->path, false );
|
||||||
|
$result = $sql->query( $query, $bind_variables, 0, "rowCount" );
|
||||||
|
|
||||||
|
if( $result > 0 ) {
|
||||||
|
|
||||||
|
echo formatJSEND( "success" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,11 +23,7 @@ checkSession();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<label><?php i18n("Goto Line:"); ?></label>
|
<label><?php i18n("Goto Line:"); ?></label>
|
||||||
<<<<<<< HEAD
|
|
||||||
<input name="goto_line" type="number" autofocus="autofocus" autocomplete="off">
|
<input name="goto_line" type="number" autofocus="autofocus" autocomplete="off">
|
||||||
=======
|
|
||||||
<input name="goto_line" autofocus="autofocus" autocomplete="off">
|
|
||||||
>>>>>>> 5af37cbce3326f97b4d3ff7eb50e88feb1fc8063
|
|
||||||
<button class="btn-left" onclick="codiad.editor.goto_line();return false;"><?php i18n("Goto"); ?></button>
|
<button class="btn-left" onclick="codiad.editor.goto_line();return false;"><?php i18n("Goto"); ?></button>
|
||||||
<button class="btn-right" onclick="codiad.modal.unload(); return false;"><?php i18n("Cancel"); ?></button>
|
<button class="btn-right" onclick="codiad.modal.unload(); return false;"><?php i18n("Cancel"); ?></button>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -1329,7 +1329,6 @@
|
||||||
|
|
||||||
i.commands.addCommand( m );
|
i.commands.addCommand( m );
|
||||||
});
|
});
|
||||||
<<<<<<< HEAD
|
|
||||||
},
|
},
|
||||||
|
|
||||||
open_goto: function() {
|
open_goto: function() {
|
||||||
|
@ -1348,9 +1347,6 @@
|
||||||
let line = $( '#modal input[name="goto_line"]' ).val();
|
let line = $( '#modal input[name="goto_line"]' ).val();
|
||||||
this.gotoLine( line );
|
this.gotoLine( line );
|
||||||
codiad.modal.unload();
|
codiad.modal.unload();
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 5af37cbce3326f97b4d3ff7eb50e88feb1fc8063
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -52,7 +52,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
|
||||||
name: 'Goto Line',
|
name: 'Goto Line',
|
||||||
bindKey: {
|
bindKey: {
|
||||||
win: 'Ctrl-L',
|
win: 'Ctrl-L',
|
||||||
|
@ -64,8 +63,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
=======
|
|
||||||
>>>>>>> 5af37cbce3326f97b4d3ff7eb50e88feb1fc8063
|
|
||||||
name: 'Move Down',
|
name: 'Move Down',
|
||||||
bindKey: {
|
bindKey: {
|
||||||
win: 'Ctrl-down',
|
win: 'Ctrl-down',
|
||||||
|
|
Loading…
Reference in a new issue